RunOptions.ExperimentalOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
RunOptions.Experimental |
Everything inside Experimental is subject to change and is not subject
to API stability guarantees in
https://www.tensorflow.org/guide/version_compat. |
RunOptions.Experimental.Builder |
Everything inside Experimental is subject to change and is not subject
to API stability guarantees in
https://www.tensorflow.org/guide/version_compat. |
|
Public Methods
public
abstract
long
getCollectiveGraphKey
()
If non-zero, declares that this graph is going to use collective
ops and must synchronize step_ids with any other graph with this
same group_key value (in a distributed computation where tasks
run disjoint graphs).
int64 collective_graph_key = 1;
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;
public
abstract
boolean
getUseRunHandlerPool
()
If true, then operations (using the inter-op pool) across all
session::run() calls will be centrally scheduled, optimizing for (median
and tail) latency.
Consider using this option for CPU-bound workloads like inference.
bool use_run_handler_pool = 2;
public
abstract
boolean
hasRunHandlerPoolOptions
()
.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# RunOptions.ExperimentalOrBuilder\n\npublic static interface **RunOptions.ExperimentalOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [RunOptions.Experimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental), [RunOptions.Experimental.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.Builder) |----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------| | [RunOptions.Experimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental) | ``` Everything inside Experimental is subject to change and is not subject to API stability guarantees in https://www.tensorflow.org/guide/version_compat. ``` | | [RunOptions.Experimental.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.Builder) | ``` Everything inside Experimental is subject to change and is not subject to API stability guarantees in https://www.tensorflow.org/guide/version_compat. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract long | [getCollectiveGraphKey](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder#getCollectiveGraphKey())() ``` If non-zero, declares that this graph is going to use collective ops and must synchronize step_ids with any other graph with this same group_key value (in a distributed computation where tasks run disjoint graphs). ``` |\n| abstract [RunOptions.Experimental.RunHandlerPoolOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.RunHandlerPoolOptions) | [getRunHandlerPoolOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder#getRunHandlerPoolOptions())() `.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;` |\n| abstract [RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder) | [getRunHandlerPoolOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder#getRunHandlerPoolOptionsOrBuilder())() `.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;` |\n| abstract boolean | [getUseRunHandlerPool](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder#getUseRunHandlerPool())() ``` If true, then operations (using the inter-op pool) across all session::run() calls will be centrally scheduled, optimizing for (median and tail) latency. ``` |\n| abstract boolean | [hasRunHandlerPoolOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder#hasRunHandlerPoolOptions())() `.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;` |\n\nPublic Methods\n--------------\n\n#### public abstract long\n**getCollectiveGraphKey**\n()\n\n\u003cbr /\u003e\n\n```\n If non-zero, declares that this graph is going to use collective\n ops and must synchronize step_ids with any other graph with this\n same group_key value (in a distributed computation where tasks\n run disjoint graphs).\n \n```\n`int64 collective_graph_key = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [RunOptions.Experimental.RunHandlerPoolOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.RunHandlerPoolOptions)\n**getRunHandlerPoolOptions**\n()\n\n`.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;` \n\n#### public abstract [RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder)\n**getRunHandlerPoolOptionsOrBuilder**\n()\n\n`.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;` \n\n#### public abstract boolean\n**getUseRunHandlerPool**\n()\n\n\u003cbr /\u003e\n\n```\n If true, then operations (using the inter-op pool) across all\n session::run() calls will be centrally scheduled, optimizing for (median\n and tail) latency.\n Consider using this option for CPU-bound workloads like inference.\n \n```\n`bool use_run_handler_pool = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasRunHandlerPoolOptions**\n()\n\n`.tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3;`"]]