OptimizerOptionsOrBuilder
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الفئات الفرعية غير المباشرة المعروفة |
الأساليب العامة
الملخص المنطقي العام getDoCommonSubexpressionElivation ()
If true, optimize the graph using common subexpression elimination.
bool do_common_subexpression_elimination = 1;
الملخص المنطقي العام getDoConstantFolding ()
If true, perform constant folding optimization on the graph.
bool do_constant_folding = 2;
الملخص المنطقي العام getDoFunctionInlining ()
If true, perform function inlining on the graph.
bool do_function_inlining = 4;
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
الملخص العام int getGlobalJitLevelValue ()
.tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5;
ملخص عام طويل 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;
الملخص العام 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;
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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"]]