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. 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;
انتزاعی عمومی boolean 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;
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;
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 Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی."],[],[],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"]]