public final class OptimizerOptions extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements OptimizerOptionsOrBuilder
Options passed to the graph optimizerProtobuf type
tensorflow.OptimizerOptions| Modifier and Type | Class and Description |
|---|---|
static class |
OptimizerOptions.Builder
Options passed to the graph optimizer
|
static class |
OptimizerOptions.GlobalJitLevel
Control the use of the compiler/jit.
|
static class |
OptimizerOptions.Level
Optimization level
|
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DO_COMMON_SUBEXPRESSION_ELIMINATION_FIELD_NUMBER |
static int |
DO_CONSTANT_FOLDING_FIELD_NUMBER |
static int |
DO_FUNCTION_INLINING_FIELD_NUMBER |
static int |
GLOBAL_JIT_LEVEL_FIELD_NUMBER |
static int |
MAX_FOLDED_CONSTANT_IN_BYTES_FIELD_NUMBER |
static int |
OPT_LEVEL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OptimizerOptions |
getDefaultInstance() |
OptimizerOptions |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDoCommonSubexpressionElimination()
If true, optimize the graph using common subexpression elimination.
|
boolean |
getDoConstantFolding()
If true, perform constant folding optimization on the graph.
|
boolean |
getDoFunctionInlining()
If true, perform function inlining on the graph.
|
OptimizerOptions.GlobalJitLevel |
getGlobalJitLevel()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; |
int |
getGlobalJitLevelValue()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; |
long |
getMaxFoldedConstantInBytes()
Constant folding optimization replaces tensors whose values can be
predetermined, with constant nodes.
|
OptimizerOptions.Level |
getOptLevel()
Overall optimization level.
|
int |
getOptLevelValue()
Overall optimization level.
|
org.nd4j.shade.protobuf.Parser<OptimizerOptions> |
getParserForType() |
int |
getSerializedSize() |
org.nd4j.shade.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OptimizerOptions.Builder |
newBuilder() |
static OptimizerOptions.Builder |
newBuilder(OptimizerOptions prototype) |
OptimizerOptions.Builder |
newBuilderForType() |
protected OptimizerOptions.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OptimizerOptions |
parseDelimitedFrom(InputStream input) |
static OptimizerOptions |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OptimizerOptions |
parseFrom(byte[] data) |
static OptimizerOptions |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OptimizerOptions |
parseFrom(ByteBuffer data) |
static OptimizerOptions |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OptimizerOptions |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static OptimizerOptions |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OptimizerOptions |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static OptimizerOptions |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static OptimizerOptions |
parseFrom(InputStream input) |
static OptimizerOptions |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<OptimizerOptions> |
parser() |
OptimizerOptions.Builder |
toBuilder() |
void |
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DO_COMMON_SUBEXPRESSION_ELIMINATION_FIELD_NUMBER
public static final int DO_CONSTANT_FOLDING_FIELD_NUMBER
public static final int MAX_FOLDED_CONSTANT_IN_BYTES_FIELD_NUMBER
public static final int DO_FUNCTION_INLINING_FIELD_NUMBER
public static final int OPT_LEVEL_FIELD_NUMBER
public static final int GLOBAL_JIT_LEVEL_FIELD_NUMBER
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuildergetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean getDoCommonSubexpressionElimination()
If true, optimize the graph using common subexpression elimination.
bool do_common_subexpression_elimination = 1;getDoCommonSubexpressionElimination in interface OptimizerOptionsOrBuilderpublic boolean getDoConstantFolding()
If true, perform constant folding optimization on the graph.
bool do_constant_folding = 2;getDoConstantFolding in interface OptimizerOptionsOrBuilderpublic long getMaxFoldedConstantInBytes()
Constant folding optimization replaces tensors whose values can be predetermined, with constant nodes. To avoid inserting too large constants, the size of each constant created can be limited. If this value is zero, a default limit of 10 MiB will be applied. If constant folding optimization is disabled, this value is ignored.
int64 max_folded_constant_in_bytes = 6;getMaxFoldedConstantInBytes in interface OptimizerOptionsOrBuilderpublic boolean getDoFunctionInlining()
If true, perform function inlining on the graph.
bool do_function_inlining = 4;getDoFunctionInlining in interface OptimizerOptionsOrBuilderpublic int getOptLevelValue()
Overall optimization level. The actual optimizations applied will be the logical OR of the flags that this level implies and any flags already set.
.tensorflow.OptimizerOptions.Level opt_level = 3;getOptLevelValue in interface OptimizerOptionsOrBuilderpublic OptimizerOptions.Level getOptLevel()
Overall optimization level. The actual optimizations applied will be the logical OR of the flags that this level implies and any flags already set.
.tensorflow.OptimizerOptions.Level opt_level = 3;getOptLevel in interface OptimizerOptionsOrBuilderpublic int getGlobalJitLevelValue()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;getGlobalJitLevelValue in interface OptimizerOptionsOrBuilderpublic OptimizerOptions.GlobalJitLevel getGlobalJitLevel()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;getGlobalJitLevel in interface OptimizerOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface org.nd4j.shade.protobuf.MessageLitewriteTo in class org.nd4j.shade.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface org.nd4j.shade.protobuf.MessageLitegetSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface org.nd4j.shade.protobuf.Messageequals in class org.nd4j.shade.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface org.nd4j.shade.protobuf.MessagehashCode in class org.nd4j.shade.protobuf.AbstractMessagepublic static OptimizerOptions parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static OptimizerOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static OptimizerOptions parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OptimizerOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OptimizerOptions parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OptimizerOptions parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OptimizerOptions parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OptimizerOptions.Builder newBuilderForType()
newBuilderForType in interface org.nd4j.shade.protobuf.MessagenewBuilderForType in interface org.nd4j.shade.protobuf.MessageLitepublic static OptimizerOptions.Builder newBuilder()
public static OptimizerOptions.Builder newBuilder(OptimizerOptions prototype)
public OptimizerOptions.Builder toBuilder()
toBuilder in interface org.nd4j.shade.protobuf.MessagetoBuilder in interface org.nd4j.shade.protobuf.MessageLiteprotected OptimizerOptions.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public static OptimizerOptions getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<OptimizerOptions> parser()
public org.nd4j.shade.protobuf.Parser<OptimizerOptions> getParserForType()
getParserForType in interface org.nd4j.shade.protobuf.MessagegetParserForType in interface org.nd4j.shade.protobuf.MessageLitegetParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public OptimizerOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.