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 subject to any API 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.
|
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.
|
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.
|
RewriterConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriterConfig |
build() |
RewriterConfig |
buildPartial() |
RewriterConfig.Builder |
clear() |
RewriterConfig.Builder |
clearAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5; |
RewriterConfig.Builder |
clearConstantFolding()
bool constant_folding = 3; |
RewriterConfig.Builder |
clearDisableModelPruning()
bool disable_model_pruning = 2; |
RewriterConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RewriterConfig.Builder |
clearMemoryOptimization()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4; |
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.
|
RewriterConfig.Builder |
clearOptimizeTensorLayout()
bool optimize_tensor_layout = 1; |
RewriterConfig.Builder |
clone() |
AutoParallelOptions |
getAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5; |
AutoParallelOptions.Builder |
getAutoParallelBuilder()
.tensorflow.AutoParallelOptions auto_parallel = 5; |
AutoParallelOptionsOrBuilder |
getAutoParallelOrBuilder()
.tensorflow.AutoParallelOptions auto_parallel = 5; |
boolean |
getConstantFolding()
bool constant_folding = 3; |
RewriterConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableModelPruning()
bool disable_model_pruning = 2; |
RewriterConfig.MemOptType |
getMemoryOptimization()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4; |
int |
getMemoryOptimizationValue()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4; |
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.
|
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.
|
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.
|
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.
|
boolean |
getOptimizeTensorLayout()
bool optimize_tensor_layout = 1; |
boolean |
hasAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RewriterConfig.Builder |
mergeAutoParallel(AutoParallelOptions value)
.tensorflow.AutoParallelOptions auto_parallel = 5; |
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 |
setAutoParallel(AutoParallelOptions.Builder builderForValue)
.tensorflow.AutoParallelOptions auto_parallel = 5; |
RewriterConfig.Builder |
setAutoParallel(AutoParallelOptions value)
.tensorflow.AutoParallelOptions auto_parallel = 5; |
RewriterConfig.Builder |
setConstantFolding(boolean value)
bool constant_folding = 3; |
RewriterConfig.Builder |
setDisableModelPruning(boolean value)
bool disable_model_pruning = 2; |
RewriterConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriterConfig.Builder |
setMemoryOptimization(RewriterConfig.MemOptType value)
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4; |
RewriterConfig.Builder |
setMemoryOptimizationValue(int value)
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4; |
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.
|
RewriterConfig.Builder |
setOptimizeTensorLayout(boolean value)
bool optimize_tensor_layout = 1; |
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()
bool optimize_tensor_layout = 1;
getOptimizeTensorLayout
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setOptimizeTensorLayout(boolean value)
bool optimize_tensor_layout = 1;
public RewriterConfig.Builder clearOptimizeTensorLayout()
bool optimize_tensor_layout = 1;
public boolean getDisableModelPruning()
bool disable_model_pruning = 2;
getDisableModelPruning
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setDisableModelPruning(boolean value)
bool disable_model_pruning = 2;
public RewriterConfig.Builder clearDisableModelPruning()
bool disable_model_pruning = 2;
public boolean getConstantFolding()
bool constant_folding = 3;
getConstantFolding
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setConstantFolding(boolean value)
bool constant_folding = 3;
public RewriterConfig.Builder clearConstantFolding()
bool constant_folding = 3;
public int getMemoryOptimizationValue()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
getMemoryOptimizationValue
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setMemoryOptimizationValue(int value)
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
public RewriterConfig.MemOptType getMemoryOptimization()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
getMemoryOptimization
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setMemoryOptimization(RewriterConfig.MemOptType value)
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
public RewriterConfig.Builder clearMemoryOptimization()
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
public boolean hasAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5;
hasAutoParallel
in interface RewriterConfigOrBuilder
public AutoParallelOptions getAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5;
getAutoParallel
in interface RewriterConfigOrBuilder
public RewriterConfig.Builder setAutoParallel(AutoParallelOptions value)
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder setAutoParallel(AutoParallelOptions.Builder builderForValue)
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder mergeAutoParallel(AutoParallelOptions value)
.tensorflow.AutoParallelOptions auto_parallel = 5;
public RewriterConfig.Builder clearAutoParallel()
.tensorflow.AutoParallelOptions auto_parallel = 5;
public AutoParallelOptions.Builder getAutoParallelBuilder()
.tensorflow.AutoParallelOptions auto_parallel = 5;
public AutoParallelOptionsOrBuilder getAutoParallelOrBuilder()
.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.
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.
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.
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.
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.
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.
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.
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.
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.
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.