public static final class RewriterConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder> implements RewriterConfigOrBuilder
Graph rewriting is experimental and subject to change, not covered by any API stability guarantees.Protobuf type
tensorflow.RewriterConfig
Modifier and Type | Method and Description |
---|---|
RewriterConfig.Builder |
addAllOptimizers(Iterable<String> values)
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.Builder |
addOptimizers(String value)
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.Builder |
addOptimizersBytes(com.google.protobuf.ByteString value)
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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriterConfig |
build() |
RewriterConfig |
buildPartial() |
RewriterConfig.Builder |
clear() |
RewriterConfig.Builder |
clearArithmeticOptimization()
Arithmetic optimizations (default is ON)
|
RewriterConfig.Builder |
clearAutoParallel()
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
RewriterConfig.Builder |
clearConstantFolding()
Fold constants (default is ON)
|
RewriterConfig.Builder |
clearDisableModelPruning()
If true, don't remove unnecessary ops from the graph
|
RewriterConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RewriterConfig.Builder |
clearMemoryOptimization()
Configures memory optimization passes through the meta-optimizer.
|
RewriterConfig.Builder |
clearMemoryOptimizerTargetNodeNamePrefix()
The prefix for nodes which are valid outputs of recomputations.
|
RewriterConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RewriterConfig.Builder |
clearOptimizers()
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.Builder |
clearOptimizeTensorLayout()
Optimize tensor layouts
|
RewriterConfig.Builder |
clone() |
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.
|
AutoParallelOptions.Builder |
getAutoParallelBuilder()
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)
|
RewriterConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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).
|
com.google.protobuf.ProtocolStringList |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RewriterConfig.Builder |
mergeAutoParallel(AutoParallelOptions value)
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
RewriterConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RewriterConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
RewriterConfig.Builder |
mergeFrom(RewriterConfig other) |
RewriterConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RewriterConfig.Builder |
setArithmeticOptimization(RewriterConfig.Toggle value)
Arithmetic optimizations (default is ON)
|
RewriterConfig.Builder |
setArithmeticOptimizationValue(int value)
Arithmetic optimizations (default is ON)
|
RewriterConfig.Builder |
setAutoParallel(AutoParallelOptions.Builder builderForValue)
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
RewriterConfig.Builder |
setAutoParallel(AutoParallelOptions value)
Configures AutoParallel optimization passes either through the
meta-optimizer or when manually specified through the optimizers field.
|
RewriterConfig.Builder |
setConstantFolding(RewriterConfig.Toggle value)
Fold constants (default is ON)
|
RewriterConfig.Builder |
setConstantFoldingValue(int value)
Fold constants (default is ON)
|
RewriterConfig.Builder |
setDisableModelPruning(boolean value)
If true, don't remove unnecessary ops from the graph
|
RewriterConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriterConfig.Builder |
setMemoryOptimization(RewriterConfig.MemOptType value)
Configures memory optimization passes through the meta-optimizer.
|
RewriterConfig.Builder |
setMemoryOptimizationValue(int value)
Configures memory optimization passes through the meta-optimizer.
|
RewriterConfig.Builder |
setMemoryOptimizerTargetNodeNamePrefix(String value)
The prefix for nodes which are valid outputs of recomputations.
|
RewriterConfig.Builder |
setMemoryOptimizerTargetNodeNamePrefixBytes(com.google.protobuf.ByteString value)
The prefix for nodes which are valid outputs of recomputations.
|
RewriterConfig.Builder |
setOptimizers(int index,
String value)
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.Builder |
setOptimizeTensorLayout(boolean value)
Optimize tensor layouts
|
RewriterConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RewriterConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RewriterConfig build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RewriterConfig buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RewriterConfig.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder mergeFrom(RewriterConfig other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public RewriterConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RewriterConfig.Builder>
IOException
public boolean getOptimizeTensorLayout()
Optimize tensor layouts
bool optimize_tensor_layout = 1;
getOptimizeTensorLayout
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setOptimizeTensorLayout(boolean value)
Optimize tensor layouts
bool optimize_tensor_layout = 1;
public RewriterConfig.Builder clearOptimizeTensorLayout()
Optimize tensor layouts
bool optimize_tensor_layout = 1;
public int getConstantFoldingValue()
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
getConstantFoldingValue
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setConstantFoldingValue(int value)
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
public RewriterConfig.Toggle getConstantFolding()
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
getConstantFolding
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setConstantFolding(RewriterConfig.Toggle value)
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
public RewriterConfig.Builder clearConstantFolding()
Fold constants (default is ON)
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
public int getArithmeticOptimizationValue()
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
getArithmeticOptimizationValue
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setArithmeticOptimizationValue(int value)
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
public RewriterConfig.Toggle getArithmeticOptimization()
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
getArithmeticOptimization
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setArithmeticOptimization(RewriterConfig.Toggle value)
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
public RewriterConfig.Builder clearArithmeticOptimization()
Arithmetic optimizations (default is ON)
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
public boolean getDisableModelPruning()
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
getDisableModelPruning
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setDisableModelPruning(boolean value)
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
public RewriterConfig.Builder clearDisableModelPruning()
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
public 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;
getMemoryOptimizationValue
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setMemoryOptimizationValue(int value)
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;
public 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;
getMemoryOptimization
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setMemoryOptimization(RewriterConfig.MemOptType value)
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;
public RewriterConfig.Builder clearMemoryOptimization()
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;
public 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;
getMemoryOptimizerTargetNodeNamePrefix
in interface RewriterConfigOrBuilder
public 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;
getMemoryOptimizerTargetNodeNamePrefixBytes
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setMemoryOptimizerTargetNodeNamePrefix(String value)
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;
public RewriterConfig.Builder clearMemoryOptimizerTargetNodeNamePrefix()
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;
public RewriterConfig.Builder setMemoryOptimizerTargetNodeNamePrefixBytes(com.google.protobuf.ByteString value)
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;
public boolean hasAutoParallel()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
hasAutoParallel
in interface RewriterConfigOrBuilder
public AutoParallelOptions getAutoParallel()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
getAutoParallel
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setAutoParallel(AutoParallelOptions value)
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder setAutoParallel(AutoParallelOptions.Builder builderForValue)
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder mergeAutoParallel(AutoParallelOptions value)
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder clearAutoParallel()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
public AutoParallelOptions.Builder getAutoParallelBuilder()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
public AutoParallelOptionsOrBuilder getAutoParallelOrBuilder()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
getAutoParallelOrBuilder
in interface RewriterConfigOrBuilder
public com.google.protobuf.ProtocolStringList 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;
getOptimizersList
in interface RewriterConfigOrBuilder
public 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;
getOptimizersCount
in interface RewriterConfigOrBuilder
public 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;
getOptimizers
in interface RewriterConfigOrBuilder
public 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;
getOptimizersBytes
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setOptimizers(int index, String value)
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;
public RewriterConfig.Builder addOptimizers(String value)
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;
public RewriterConfig.Builder addAllOptimizers(Iterable<String> values)
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;
public RewriterConfig.Builder clearOptimizers()
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;
public RewriterConfig.Builder addOptimizersBytes(com.google.protobuf.ByteString value)
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;
public final RewriterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
public final RewriterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriterConfig.Builder>
Copyright © 2015–2017. All rights reserved.