OptimizerOptionsOrBuilder
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các lớp con gián tiếp đã biết |
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;
.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;
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;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 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"]]