public interface RewriterConfigOrBuilder
extends org.nd4j.shade.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
RewriterConfig.Toggle |
getArithmeticOptimization()
Arithmetic optimizations (default is ON)
e.g.
|
int |
getArithmeticOptimizationValue()
Arithmetic optimizations (default is ON)
e.g.
|
AutoParallelOptions |
getAutoParallel()
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
AutoParallelOptionsOrBuilder |
getAutoParallelOrBuilder()
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
RewriterConfig.Toggle |
getConstantFolding()
Fold constants (default is ON)
Statically infer the value of tensors when possible, and materialize the
result using constants.
|
int |
getConstantFoldingValue()
Fold constants (default is ON)
Statically infer the value of tensors when possible, and materialize the
result using constants.
|
RewriterConfig.CustomGraphOptimizer |
getCustomOptimizers(int index)
list of CustomGraphOptimizers to apply.
|
int |
getCustomOptimizersCount()
list of CustomGraphOptimizers to apply.
|
List<RewriterConfig.CustomGraphOptimizer> |
getCustomOptimizersList()
list of CustomGraphOptimizers to apply.
|
RewriterConfig.CustomGraphOptimizerOrBuilder |
getCustomOptimizersOrBuilder(int index)
list of CustomGraphOptimizers to apply.
|
List<? extends RewriterConfig.CustomGraphOptimizerOrBuilder> |
getCustomOptimizersOrBuilderList()
list of CustomGraphOptimizers to apply.
|
RewriterConfig.Toggle |
getDebugStripper()
Strips debug-related nodes from the graph (off by default).
|
int |
getDebugStripperValue()
Strips debug-related nodes from the graph (off by default).
|
RewriterConfig.Toggle |
getDependencyOptimization()
Control dependency optimizations (default is ON).
|
int |
getDependencyOptimizationValue()
Control dependency optimizations (default is ON).
|
boolean |
getDisableModelPruning()
If true, don't remove unnecessary ops from the graph
|
RewriterConfig.Toggle |
getFunctionOptimization()
Function optimizations (default is ON).
|
int |
getFunctionOptimizationValue()
Function optimizations (default is ON).
|
RewriterConfig.Toggle |
getLayoutOptimizer()
Optimize tensor layouts (default is ON)
e.g.
|
int |
getLayoutOptimizerValue()
Optimize tensor layouts (default is ON)
e.g.
|
RewriterConfig.Toggle |
getLoopOptimization()
Loop optimizations (default is ON).
|
int |
getLoopOptimizationValue()
Loop optimizations (default is ON).
|
RewriterConfig.MemOptType |
getMemoryOptimization()
Configures memory optimization passes through the meta-optimizer.
|
int |
getMemoryOptimizationValue()
Configures memory optimization passes through the meta-optimizer.
|
String |
getMemoryOptimizerTargetNodeNameScope()
A node name scope for node names which are valid outputs of recompuations.
|
org.nd4j.shade.protobuf.ByteString |
getMemoryOptimizerTargetNodeNameScopeBytes()
A node name scope for node names which are valid outputs of recompuations.
|
RewriterConfig.NumIterationsType |
getMetaOptimizerIterations()
Controls how many times we run the optimizers in meta optimizer (default
is once).
|
int |
getMetaOptimizerIterationsValue()
Controls how many times we run the optimizers in meta optimizer (default
is once).
|
String |
getOptimizers(int index)
If non-empty, will use this as an alternative way to specify a list of
optimizations to turn on and the order of the optimizations (replacing the
meta-optimizer).
|
org.nd4j.shade.protobuf.ByteString |
getOptimizersBytes(int index)
If non-empty, will use this as an alternative way to specify a list of
optimizations to turn on and the order of the optimizations (replacing the
meta-optimizer).
|
int |
getOptimizersCount()
If non-empty, will use this as an alternative way to specify a list of
optimizations to turn on and the order of the optimizations (replacing the
meta-optimizer).
|
List<String> |
getOptimizersList()
If non-empty, will use this as an alternative way to specify a list of
optimizations to turn on and the order of the optimizations (replacing the
meta-optimizer).
|
RewriterConfig.Toggle |
getRemapping()
Remapping (default is ON)
Remap subgraphs onto more efficient implementations.
|
int |
getRemappingValue()
Remapping (default is ON)
Remap subgraphs onto more efficient implementations.
|
RewriterConfig.Toggle |
getScopedAllocatorOptimization()
Try to allocate some independent Op outputs contiguously in order to
merge or eliminate downstream Ops (off by default).
|
int |
getScopedAllocatorOptimizationValue()
Try to allocate some independent Op outputs contiguously in order to
merge or eliminate downstream Ops (off by default).
|
ScopedAllocatorOptions |
getScopedAllocatorOpts()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
ScopedAllocatorOptionsOrBuilder |
getScopedAllocatorOptsOrBuilder()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Toggle |
getShapeOptimization()
Shape optimizations (default is ON)
Simplify computations made on shapes.
|
int |
getShapeOptimizationValue()
Shape optimizations (default is ON)
Simplify computations made on shapes.
|
boolean |
hasAutoParallel()
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
boolean |
hasScopedAllocatorOpts()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
int getLayoutOptimizerValue()
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
RewriterConfig.Toggle getLayoutOptimizer()
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
int getConstantFoldingValue()
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.Toggle getConstantFolding()
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
int getShapeOptimizationValue()
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
RewriterConfig.Toggle getShapeOptimization()
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
int getRemappingValue()
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
RewriterConfig.Toggle getRemapping()
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
int getArithmeticOptimizationValue()
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
RewriterConfig.Toggle getArithmeticOptimization()
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
int getDependencyOptimizationValue()
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
RewriterConfig.Toggle getDependencyOptimization()
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
int getLoopOptimizationValue()
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
RewriterConfig.Toggle getLoopOptimization()
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
int getFunctionOptimizationValue()
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
RewriterConfig.Toggle getFunctionOptimization()
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
int getDebugStripperValue()
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
RewriterConfig.Toggle getDebugStripper()
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
boolean getDisableModelPruning()
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
int getScopedAllocatorOptimizationValue()
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
RewriterConfig.Toggle getScopedAllocatorOptimization()
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
int getMetaOptimizerIterationsValue()
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
RewriterConfig.NumIterationsType getMetaOptimizerIterations()
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
int getMemoryOptimizationValue()
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
RewriterConfig.MemOptType getMemoryOptimization()
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
String getMemoryOptimizerTargetNodeNameScope()
A node name scope for node names which are valid outputs of recompuations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
org.nd4j.shade.protobuf.ByteString getMemoryOptimizerTargetNodeNameScopeBytes()
A node name scope for node names which are valid outputs of recompuations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
boolean hasAutoParallel()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
AutoParallelOptions getAutoParallel()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
AutoParallelOptionsOrBuilder getAutoParallelOrBuilder()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
boolean hasScopedAllocatorOpts()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
ScopedAllocatorOptions getScopedAllocatorOpts()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
List<String> getOptimizersList()
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom registered optimizers will be run after the base optimizers, in the order that they are specified.
repeated string optimizers = 100;
int getOptimizersCount()
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom registered optimizers will be run after the base optimizers, in the order that they are specified.
repeated string optimizers = 100;
String getOptimizers(int index)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom registered optimizers will be run after the base optimizers, in the order that they are specified.
repeated string optimizers = 100;
org.nd4j.shade.protobuf.ByteString getOptimizersBytes(int index)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom registered optimizers will be run after the base optimizers, in the order that they are specified.
repeated string optimizers = 100;
List<RewriterConfig.CustomGraphOptimizer> getCustomOptimizersList()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
int getCustomOptimizersCount()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
List<? extends RewriterConfig.CustomGraphOptimizerOrBuilder> getCustomOptimizersOrBuilderList()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder(int index)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
Copyright © 2020. All rights reserved.