public final class
OptimizerOptions
Options passed to the graph optimizer
tensorflow.OptimizerOptions
Nested Classes
class | OptimizerOptions.Builder | Options passed to the graph optimizer tensorflow.OptimizerOptions
|
|
enum | OptimizerOptions.GlobalJitLevel | Control the use of the compiler/jit. |
|
enum | OptimizerOptions.Level | Optimization level tensorflow.OptimizerOptions.Level
|
Constants
Public Methods
boolean |
equals(Object obj)
|
static OptimizerOptions | |
OptimizerOptions | |
final static com.google.protobuf.Descriptors.Descriptor | |
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. |
|
|
int | |
final com.google.protobuf.UnknownFieldSet | |
int |
hashCode()
|
final boolean | |
static OptimizerOptions.Builder |
newBuilder(OptimizerOptions prototype)
|
static OptimizerOptions.Builder | |
OptimizerOptions.Builder | |
static OptimizerOptions |
parseDelimitedFrom(InputStream input)
|
static OptimizerOptions |
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static OptimizerOptions |
parseFrom(ByteBuffer data)
|
static OptimizerOptions |
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static OptimizerOptions |
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static OptimizerOptions |
parseFrom(com.google.protobuf.CodedInputStream input)
|
static OptimizerOptions |
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static OptimizerOptions |
parseFrom(com.google.protobuf.ByteString data)
|
static OptimizerOptions |
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static OptimizerOptions |
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static
|
parser()
|
OptimizerOptions.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|
Inherited Methods
Constants
public static final int DO_COMMON_SUBEXPRESSION_ELIMINATION_FIELD_NUMBER
Constant Value:
1
public static final int DO_CONSTANT_FOLDING_FIELD_NUMBER
Constant Value:
2
public static final int DO_FUNCTION_INLINING_FIELD_NUMBER
Constant Value:
4
public static final int GLOBAL_JIT_LEVEL_FIELD_NUMBER
Constant Value:
5
public static final int MAX_FOLDED_CONSTANT_IN_BYTES_FIELD_NUMBER
Constant Value:
6
public static final int OPT_LEVEL_FIELD_NUMBER
Constant Value:
3
Public Methods
public boolean equals (Object obj)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public boolean getDoCommonSubexpressionElimination ()
If true, optimize the graph using common subexpression elimination.
bool do_common_subexpression_elimination = 1;
public boolean getDoConstantFolding ()
If true, perform constant folding optimization on the graph.
bool do_constant_folding = 2;
public boolean getDoFunctionInlining ()
If true, perform function inlining on the graph.
bool do_function_inlining = 4;
public OptimizerOptions.GlobalJitLevel getGlobalJitLevel ()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
public int getGlobalJitLevelValue ()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
public 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;
public 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;
public 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;
public
getParserForType
()
public int getSerializedSize ()
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int hashCode ()
public final boolean isInitialized ()
public static OptimizerOptions parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static OptimizerOptions parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static OptimizerOptions parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static OptimizerOptions parseFrom (com.google.protobuf.CodedInputStream input)
Throws
IOException |
---|
public static OptimizerOptions parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static OptimizerOptions parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static OptimizerOptions parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static OptimizerOptions parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public
static
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
IOException |
---|