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;
공개 추상 부울 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;
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;
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 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]