giao diện công cộng OptimizerOptionsOrBuilder
Các lớp con gián tiếp đã biết |
Phương pháp công khai
trừu tượng boolean | getDoCommonSubexpressElimination () If true, optimize the graph using common subexpression elimination. |
trừu tượng boolean | getDoConstantFolding () If true, perform constant folding optimization on the graph. |
trừu tượng boolean | getDoFunctionNội tuyến () If true, perform function inlining on the graph. |
trừu tượng OptimizerOptions.GlobalJitLevel | getGlobalJitLevel () .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; |
int trừu tượng | getGlobalJitLevelValue () .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; |
trừu tượng dài | getMaxFoldedConstantInBytes () Constant folding optimization replaces tensors whose values can be predetermined, with constant nodes. |
Tóm tắt OptimizerOptions.Level | getOptLevel () Overall optimization level. |
int trừu tượng | getOptLevelValue () Overall optimization level. |
Phương pháp công khai
boolean trừu tượng công khai getDoCommonSubexpressElimination ()
If true, optimize the graph using common subexpression elimination.
bool do_common_subexpression_elimination = 1;
boolean trừu tượng công khai getDoConstantFolding ()
If true, perform constant folding optimization on the graph.
bool do_constant_folding = 2;
boolean trừu tượng công khai getDoFunctionInline ()
If true, perform function inlining on the graph.
bool do_function_inlining = 4;
Tóm tắt công khai OptimizerOptions.GlobalJitLevel getGlobalJitLevel ()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
tóm tắt công khai int getGlobalJitLevelValue ()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
tóm tắt công khai dài 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;
Tóm tắt công khai 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;
tóm tắt công khai 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;