GraphOptionsOrBuilder
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Известные косвенные подклассы |
Публичные методы
абстрактный длинный | getBuildCostModel ()
The number of steps to run before returning a cost model detailing
the memory usage and performance of each node of the graph. |
абстрактный длинный | |
абстрактное логическое значение | |
абстрактное логическое значение | |
абстрактное логическое значение | getInferShapes ()
Annotate each Node with Op output shape data, to the extent it can
be statically inferred. |
абстрактные параметры оптимизатора | |
абстрактный OptimizerOptionsOrBuilder | |
абстрактное логическое значение | |
абстрактный RewriterConfig | |
абстрактный RewriterConfigOrBuilder | |
абстрактный интервал | |
абстрактное логическое значение | |
абстрактное логическое значение | |
Публичные методы
общедоступная абстрактная длинная getBuildCostModel ()
The number of steps to run before returning a cost model detailing
the memory usage and performance of each node of the graph. 0 means
no cost model.
int64 build_cost_model = 4;
общедоступный абстрактный длинный getBuildCostModelAfter ()
The number of steps to skip before collecting statistics for the
cost model.
int64 build_cost_model_after = 9;
общедоступное абстрактное логическое значение getEnableBfloat16Sendrecv ()
If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;
общедоступное абстрактное логическое значение getEnableRecvScheduling ()
If true, use control flow to schedule the activation of Recv nodes.
(Currently ignored.)
bool enable_recv_scheduling = 2;
общедоступное абстрактное логическое значение getInferShapes ()
Annotate each Node with Op output shape data, to the extent it can
be statically inferred.
bool infer_shapes = 5;
публичный абстрактный OptimizerOptions getOptimizerOptions ()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
общедоступный абстрактный OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder ()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
общедоступное абстрактное логическое значение getPlacePrunedGraph ()
Only place the subgraphs that are run, rather than the entire graph.
This is useful for interactive graph building, where one might
produce graphs that cannot be placed during the debugging
process. In particular, it allows the client to continue work in
a session after adding a node to a graph whose placement
constraints are unsatisfiable.
bool place_pruned_graph = 6;
публичный абстрактный RewriterConfig getRewriteOptions ()
Options that control the type and amount of graph rewriting.
Not currently configurable via the public Python API (i.e. there is no API
stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
общедоступный абстрактный RewriterConfigOrBuilder getRewriteOptionsOrBuilder ()
Options that control the type and amount of graph rewriting.
Not currently configurable via the public Python API (i.e. there is no API
stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
общедоступный абстрактный int getTimelineStep ()
If > 0, record a timeline every this many steps.
EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;
общедоступное абстрактное логическое значение hasOptimizerOptions ()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
общедоступное абстрактное логическое значение hasRewriteOptions ()
Options that control the type and amount of graph rewriting.
Not currently configurable via the public Python API (i.e. there is no API
stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-27 UTC.
[null,null,["Последнее обновление: 2025-07-27 UTC."],[],[],null,["# GraphOptionsOrBuilder\n\npublic interface **GraphOptionsOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [GraphOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptions), [GraphOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptions.Builder) |------------------------------------------------------------------------------------------------|-----------------------------------------| | [GraphOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptions) | Protobuf type `tensorflow.GraphOptions` | | [GraphOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptions.Builder) | Protobuf type `tensorflow.GraphOptions` | |||\n\n### Public Methods\n\n|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract long | [getBuildCostModel](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getBuildCostModel())() ``` The number of steps to run before returning a cost model detailing the memory usage and performance of each node of the graph. ``` |\n| abstract long | [getBuildCostModelAfter](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getBuildCostModelAfter())() ``` The number of steps to skip before collecting statistics for the cost model. ``` |\n| abstract boolean | [getEnableBfloat16Sendrecv](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getEnableBfloat16Sendrecv())() ``` If true, transfer float values between processes as bfloat16. ``` |\n| abstract boolean | [getEnableRecvScheduling](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getEnableRecvScheduling())() ``` If true, use control flow to schedule the activation of Recv nodes. ``` |\n| abstract boolean | [getInferShapes](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getInferShapes())() ``` Annotate each Node with Op output shape data, to the extent it can be statically inferred. ``` |\n| abstract [OptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions) | [getOptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getOptimizerOptions())() ``` Options controlling how graph is optimized. ``` |\n| abstract [OptimizerOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder) | [getOptimizerOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getOptimizerOptionsOrBuilder())() ``` Options controlling how graph is optimized. ``` |\n| abstract boolean | [getPlacePrunedGraph](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getPlacePrunedGraph())() ``` Only place the subgraphs that are run, rather than the entire graph. ``` |\n| abstract [RewriterConfig](/jvm/api_docs/java/org/tensorflow/proto/framework/RewriterConfig) | [getRewriteOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getRewriteOptions())() ``` Options that control the type and amount of graph rewriting. ``` |\n| abstract [RewriterConfigOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RewriterConfigOrBuilder) | [getRewriteOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getRewriteOptionsOrBuilder())() ``` Options that control the type and amount of graph rewriting. ``` |\n| abstract int | [getTimelineStep](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#getTimelineStep())() ``` If \u003e 0, record a timeline every this many steps. ``` |\n| abstract boolean | [hasOptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#hasOptimizerOptions())() ``` Options controlling how graph is optimized. ``` |\n| abstract boolean | [hasRewriteOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder#hasRewriteOptions())() ``` Options that control the type and amount of graph rewriting. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract long\n**getBuildCostModel**\n()\n\n\u003cbr /\u003e\n\n```\n The number of steps to run before returning a cost model detailing\n the memory usage and performance of each node of the graph. 0 means\n no cost model.\n \n```\n`int64 build_cost_model = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getBuildCostModelAfter**\n()\n\n\u003cbr /\u003e\n\n```\n The number of steps to skip before collecting statistics for the\n cost model.\n \n```\n`int64 build_cost_model_after = 9;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getEnableBfloat16Sendrecv**\n()\n\n\u003cbr /\u003e\n\n```\n If true, transfer float values between processes as bfloat16.\n \n```\n`bool enable_bfloat16_sendrecv = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getEnableRecvScheduling**\n()\n\n\u003cbr /\u003e\n\n```\n If true, use control flow to schedule the activation of Recv nodes.\n (Currently ignored.)\n \n```\n`bool enable_recv_scheduling = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getInferShapes**\n()\n\n\u003cbr /\u003e\n\n```\n Annotate each Node with Op output shape data, to the extent it can\n be statically inferred.\n \n```\n`bool infer_shapes = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract [OptimizerOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptions)\n**getOptimizerOptions**\n()\n\n\u003cbr /\u003e\n\n```\n Options controlling how graph is optimized.\n \n```\n`.tensorflow.OptimizerOptions optimizer_options = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract [OptimizerOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder)\n**getOptimizerOptionsOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Options controlling how graph is optimized.\n \n```\n`.tensorflow.OptimizerOptions optimizer_options = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getPlacePrunedGraph**\n()\n\n\u003cbr /\u003e\n\n```\n Only place the subgraphs that are run, rather than the entire graph.\n This is useful for interactive graph building, where one might\n produce graphs that cannot be placed during the debugging\n process. In particular, it allows the client to continue work in\n a session after adding a node to a graph whose placement\n constraints are unsatisfiable.\n \n```\n`bool place_pruned_graph = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract [RewriterConfig](/jvm/api_docs/java/org/tensorflow/proto/framework/RewriterConfig)\n**getRewriteOptions**\n()\n\n\u003cbr /\u003e\n\n```\n Options that control the type and amount of graph rewriting.\n Not currently configurable via the public Python API (i.e. there is no API\n stability guarantee if you import RewriterConfig explicitly).\n \n```\n`.tensorflow.RewriterConfig rewrite_options = 10;`\n\n\u003cbr /\u003e\n\n#### public abstract [RewriterConfigOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RewriterConfigOrBuilder)\n**getRewriteOptionsOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Options that control the type and amount of graph rewriting.\n Not currently configurable via the public Python API (i.e. there is no API\n stability guarantee if you import RewriterConfig explicitly).\n \n```\n`.tensorflow.RewriterConfig rewrite_options = 10;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getTimelineStep**\n()\n\n\u003cbr /\u003e\n\n```\n If \u003e 0, record a timeline every this many steps.\n EXPERIMENTAL: This currently has no effect in MasterSession.\n \n```\n`int32 timeline_step = 8;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasOptimizerOptions**\n()\n\n\u003cbr /\u003e\n\n```\n Options controlling how graph is optimized.\n \n```\n`.tensorflow.OptimizerOptions optimizer_options = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasRewriteOptions**\n()\n\n\u003cbr /\u003e\n\n```\n Options that control the type and amount of graph rewriting.\n Not currently configurable via the public Python API (i.e. there is no API\n stability guarantee if you import RewriterConfig explicitly).\n \n```\n`.tensorflow.RewriterConfig rewrite_options = 10;`\n\n\u003cbr /\u003e"]]