Package org.tensorflow.framework
Interface OptimizerOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OptimizerOptions,OptimizerOptions.Builder
public interface OptimizerOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCPU code will be autoclustered only if global_jit_level >= ON_1 and either: - this flag is true, or - TF_XLA_FLAGS contains --tf_xla_cpu_global_jit=true.booleanIf true, optimize the graph using common subexpression elimination.booleanIf true, perform constant folding optimization on the graph.booleanIf true, perform function inlining on the graph..tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;int.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;longConstant folding optimization replaces tensors whose values can be predetermined, with constant nodes.Overall optimization level.intOverall optimization level.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDoCommonSubexpressionElimination
boolean getDoCommonSubexpressionElimination()If true, optimize the graph using common subexpression elimination. Note: the optimization Level L1 will override this setting to true. So in order to disable common subexpression elimination the opt_level has to be set to L0.
bool do_common_subexpression_elimination = 1;- Returns:
- The doCommonSubexpressionElimination.
-
getDoConstantFolding
boolean getDoConstantFolding()If true, perform constant folding optimization on the graph. Note: the optimization Level L1 will override this setting to true. So in order to disable constant folding the opt_level has to be set to L0.
bool do_constant_folding = 2;- Returns:
- The doConstantFolding.
-
getMaxFoldedConstantInBytes
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;- Returns:
- The maxFoldedConstantInBytes.
-
getDoFunctionInlining
boolean getDoFunctionInlining()If true, perform function inlining on the graph.
bool do_function_inlining = 4;- Returns:
- The doFunctionInlining.
-
getOptLevelValue
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;- Returns:
- The enum numeric value on the wire for optLevel.
-
getOptLevel
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;- Returns:
- The optLevel.
-
getGlobalJitLevelValue
int getGlobalJitLevelValue().tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;- Returns:
- The enum numeric value on the wire for globalJitLevel.
-
getGlobalJitLevel
OptimizerOptions.GlobalJitLevel getGlobalJitLevel().tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;- Returns:
- The globalJitLevel.
-
getCpuGlobalJit
boolean getCpuGlobalJit()CPU code will be autoclustered only if global_jit_level >= ON_1 and either: - this flag is true, or - TF_XLA_FLAGS contains --tf_xla_cpu_global_jit=true.
bool cpu_global_jit = 7;- Returns:
- The cpuGlobalJit.
-