public interface RewriterConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
RewriterConfig.Toggle |
getArithmeticOptimization()
Arithmetic optimizations (default is ON)
|
int |
getArithmeticOptimizationValue()
Arithmetic optimizations (default is ON)
|
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)
|
int |
getConstantFoldingValue()
Fold constants (default is ON)
|
boolean |
getDisableModelPruning()
If true, don't remove unnecessary ops from the graph
|
RewriterConfig.MemOptType |
getMemoryOptimization()
Configures memory optimization passes through the meta-optimizer.
|
int |
getMemoryOptimizationValue()
Configures memory optimization passes through the meta-optimizer.
|
String |
getMemoryOptimizerTargetNodeNamePrefix()
The prefix for nodes which are valid outputs of recomputations.
|
com.google.protobuf.ByteString |
getMemoryOptimizerTargetNodeNamePrefixBytes()
The prefix for nodes which are valid outputs of recomputations.
|
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).
|
com.google.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).
|
boolean |
getOptimizeTensorLayout()
Optimize tensor layouts
|
boolean |
hasAutoParallel()
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean getOptimizeTensorLayout()
Optimize tensor layouts
bool optimize_tensor_layout = 1;
int getConstantFoldingValue()
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.Toggle getConstantFolding()
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
int getArithmeticOptimizationValue()
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
RewriterConfig.Toggle getArithmeticOptimization()
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
boolean getDisableModelPruning()
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
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 getMemoryOptimizerTargetNodeNamePrefix()
The prefix for nodes which are valid outputs of recomputations. Inputs to nodes with this name prefix may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the prefixed nodes themselves will not be recomputed. Typically this will be "gradients/", indicating that activations from the forward pass of a graph may be recomputed as inputs to gradients, but may be adjusted if gradients are inside a name scope or if inputs to non-gradients should be recomputed. Defaults to "gradients/" if empty or not set.
string memory_optimizer_target_node_name_prefix = 6;
com.google.protobuf.ByteString getMemoryOptimizerTargetNodeNamePrefixBytes()
The prefix for nodes which are valid outputs of recomputations. Inputs to nodes with this name prefix may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the prefixed nodes themselves will not be recomputed. Typically this will be "gradients/", indicating that activations from the forward pass of a graph may be recomputed as inputs to gradients, but may be adjusted if gradients are inside a name scope or if inputs to non-gradients should be recomputed. Defaults to "gradients/" if empty or not set.
string memory_optimizer_target_node_name_prefix = 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;
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.
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.
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.
repeated string optimizers = 100;
com.google.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.
repeated string optimizers = 100;
Copyright © 2015–2017. All rights reserved.