OptimizerOptionsOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
OptimizerOptions |
Options passed to the graph optimizer
Protobuf type tensorflow.OptimizerOptions
|
OptimizerOptions.Builder |
Options passed to the graph optimizer
Protobuf type tensorflow.OptimizerOptions
|
|
Public Methods
public
abstract
boolean
getDoCommonSubexpressionElimination
()
If true, optimize the graph using common subexpression elimination.
bool do_common_subexpression_elimination = 1;
public
abstract
boolean
getDoConstantFolding
()
If true, perform constant folding optimization on the graph.
bool do_constant_folding = 2;
public
abstract
boolean
getDoFunctionInlining
()
If true, perform function inlining on the graph.
bool do_function_inlining = 4;
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
public
abstract
int
getGlobalJitLevelValue
()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
public
abstract
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;
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
abstract
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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# OptimizerOptionsOrBuilder\n\npublic interface **OptimizerOptionsOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [OptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions), [OptimizerOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.Builder) |--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | [OptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions) | ``` Options passed to the graph optimizer ``` Protobuf type `tensorflow.OptimizerOptions` | | [OptimizerOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.Builder) | ``` Options passed to the graph optimizer ``` Protobuf type `tensorflow.OptimizerOptions` | |||\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [getDoCommonSubexpressionElimination](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getDoCommonSubexpressionElimination())() ``` If true, optimize the graph using common subexpression elimination. ``` |\n| abstract boolean | [getDoConstantFolding](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getDoConstantFolding())() ``` If true, perform constant folding optimization on the graph. ``` |\n| abstract boolean | [getDoFunctionInlining](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getDoFunctionInlining())() ``` If true, perform function inlining on the graph. ``` |\n| abstract [OptimizerOptions.GlobalJitLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.GlobalJitLevel) | [getGlobalJitLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getGlobalJitLevel())() `.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;` |\n| abstract int | [getGlobalJitLevelValue](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getGlobalJitLevelValue())() `.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;` |\n| abstract long | [getMaxFoldedConstantInBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getMaxFoldedConstantInBytes())() ``` Constant folding optimization replaces tensors whose values can be predetermined, with constant nodes. ``` |\n| abstract [OptimizerOptions.Level](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.Level) | [getOptLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getOptLevel())() ``` Overall optimization level. ``` |\n| abstract int | [getOptLevelValue](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder#getOptLevelValue())() ``` Overall optimization level. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**getDoCommonSubexpressionElimination**\n()\n\n\u003cbr /\u003e\n\n```\n If true, optimize the graph using common subexpression elimination.\n \n```\n`bool do_common_subexpression_elimination = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getDoConstantFolding**\n()\n\n\u003cbr /\u003e\n\n```\n If true, perform constant folding optimization on the graph.\n \n```\n`bool do_constant_folding = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getDoFunctionInlining**\n()\n\n\u003cbr /\u003e\n\n```\n If true, perform function inlining on the graph.\n \n```\n`bool do_function_inlining = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract [OptimizerOptions.GlobalJitLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.GlobalJitLevel)\n**getGlobalJitLevel**\n()\n\n`.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;` \n\n#### public abstract int\n**getGlobalJitLevelValue**\n()\n\n`.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;` \n\n#### public abstract long\n**getMaxFoldedConstantInBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Constant folding optimization replaces tensors whose values can be\n predetermined, with constant nodes. To avoid inserting too large constants,\n the size of each constant created can be limited. If this value is zero, a\n default limit of 10 MiB will be applied. If constant folding optimization\n is disabled, this value is ignored.\n \n```\n`int64 max_folded_constant_in_bytes = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract [OptimizerOptions.Level](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions.Level)\n**getOptLevel**\n()\n\n\u003cbr /\u003e\n\n```\n Overall optimization level. The actual optimizations applied will be the\n logical OR of the flags that this level implies and any flags already set.\n \n```\n`.tensorflow.OptimizerOptions.Level opt_level = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getOptLevelValue**\n()\n\n\u003cbr /\u003e\n\n```\n Overall optimization level. The actual optimizations applied will be the\n logical OR of the flags that this level implies and any flags already set.\n \n```\n`.tensorflow.OptimizerOptions.Level opt_level = 3;`\n\n\u003cbr /\u003e"]]