RunOptionsOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
public
abstract
DebugOptions
getDebugOptions
()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
public
abstract
DebugOptionsOrBuilder
getDebugOptionsOrBuilder
()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
.tensorflow.RunOptions.Experimental experimental = 8;
.tensorflow.RunOptions.Experimental experimental = 8;
public
abstract
int
getInterOpThreadPool
()
The thread pool to use, if session_inter_op_thread_pool is configured.
To use the caller thread set this to -1 - this uses the caller thread
to execute Session::Run() and thus avoids a context switch. Using the
caller thread to execute Session::Run() should be done ONLY for simple
graphs, where the overhead of an additional context switch is
comparable with the overhead of Session::Run().
int32 inter_op_thread_pool = 3;
public
abstract
boolean
getOutputPartitionGraphs
()
Whether the partition graph(s) executed by the executor(s) should be
outputted via RunMetadata.
bool output_partition_graphs = 5;
public
abstract
boolean
getReportTensorAllocationsUponOom
()
When enabled, causes tensor allocation information to be included in
the error message when the Run() call fails because the allocator ran
out of memory (OOM).
Enabling this option can slow down the Run() call.
bool report_tensor_allocations_upon_oom = 7;
public
abstract
long
getTimeoutInMs
()
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;
.tensorflow.RunOptions.TraceLevel trace_level = 1;
public
abstract
int
getTraceLevelValue
()
.tensorflow.RunOptions.TraceLevel trace_level = 1;
public
abstract
boolean
hasDebugOptions
()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
public
abstract
boolean
hasExperimental
()
.tensorflow.RunOptions.Experimental experimental = 8;
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,["# RunOptionsOrBuilder\n\npublic interface **RunOptionsOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [RunOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions), [RunOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Builder) |--------------------------------------------------------------------------------------------|-------------------------------------------| | [RunOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions) | ``` Options for a single Run() call. ``` | | [RunOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Builder) | ``` Options for a single Run() call. ``` | |||\n\n### Public Methods\n\n|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [DebugOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/DebugOptions) | [getDebugOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getDebugOptions())() ``` EXPERIMENTAL. ``` |\n| abstract [DebugOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/DebugOptionsOrBuilder) | [getDebugOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getDebugOptionsOrBuilder())() ``` EXPERIMENTAL. ``` |\n| abstract [RunOptions.Experimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental) | [getExperimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getExperimental())() `.tensorflow.RunOptions.Experimental experimental = 8;` |\n| abstract [RunOptions.ExperimentalOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder) | [getExperimentalOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getExperimentalOrBuilder())() `.tensorflow.RunOptions.Experimental experimental = 8;` |\n| abstract int | [getInterOpThreadPool](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getInterOpThreadPool())() ``` The thread pool to use, if session_inter_op_thread_pool is configured. ``` |\n| abstract boolean | [getOutputPartitionGraphs](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getOutputPartitionGraphs())() ``` Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata. ``` |\n| abstract boolean | [getReportTensorAllocationsUponOom](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getReportTensorAllocationsUponOom())() ``` When enabled, causes tensor allocation information to be included in the error message when the Run() call fails because the allocator ran out of memory (OOM). ``` |\n| abstract long | [getTimeoutInMs](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getTimeoutInMs())() ``` Time to wait for operation to complete in milliseconds. ``` |\n| abstract [RunOptions.TraceLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.TraceLevel) | [getTraceLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getTraceLevel())() `.tensorflow.RunOptions.TraceLevel trace_level = 1;` |\n| abstract int | [getTraceLevelValue](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#getTraceLevelValue())() `.tensorflow.RunOptions.TraceLevel trace_level = 1;` |\n| abstract boolean | [hasDebugOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#hasDebugOptions())() ``` EXPERIMENTAL. ``` |\n| abstract boolean | [hasExperimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptionsOrBuilder#hasExperimental())() `.tensorflow.RunOptions.Experimental experimental = 8;` |\n\nPublic Methods\n--------------\n\n#### public abstract [DebugOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/DebugOptions)\n**getDebugOptions**\n()\n\n\u003cbr /\u003e\n\n```\n EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.\n \n```\n`.tensorflow.DebugOptions debug_options = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract [DebugOptionsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/DebugOptionsOrBuilder)\n**getDebugOptionsOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.\n \n```\n`.tensorflow.DebugOptions debug_options = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract [RunOptions.Experimental](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.Experimental)\n**getExperimental**\n()\n\n`.tensorflow.RunOptions.Experimental experimental = 8;` \n\n#### public abstract [RunOptions.ExperimentalOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.ExperimentalOrBuilder)\n**getExperimentalOrBuilder**\n()\n\n`.tensorflow.RunOptions.Experimental experimental = 8;` \n\n#### public abstract int\n**getInterOpThreadPool**\n()\n\n\u003cbr /\u003e\n\n```\n The thread pool to use, if session_inter_op_thread_pool is configured.\n To use the caller thread set this to -1 - this uses the caller thread\n to execute Session::Run() and thus avoids a context switch. Using the\n caller thread to execute Session::Run() should be done ONLY for simple\n graphs, where the overhead of an additional context switch is\n comparable with the overhead of Session::Run().\n \n```\n`int32 inter_op_thread_pool = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getOutputPartitionGraphs**\n()\n\n\u003cbr /\u003e\n\n```\n Whether the partition graph(s) executed by the executor(s) should be\n outputted via RunMetadata.\n \n```\n`bool output_partition_graphs = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getReportTensorAllocationsUponOom**\n()\n\n\u003cbr /\u003e\n\n```\n When enabled, causes tensor allocation information to be included in\n the error message when the Run() call fails because the allocator ran\n out of memory (OOM).\n Enabling this option can slow down the Run() call.\n \n```\n`bool report_tensor_allocations_upon_oom = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getTimeoutInMs**\n()\n\n\u003cbr /\u003e\n\n```\n Time to wait for operation to complete in milliseconds.\n \n```\n`int64 timeout_in_ms = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract [RunOptions.TraceLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/RunOptions.TraceLevel)\n**getTraceLevel**\n()\n\n`.tensorflow.RunOptions.TraceLevel trace_level = 1;` \n\n#### public abstract int\n**getTraceLevelValue**\n()\n\n`.tensorflow.RunOptions.TraceLevel trace_level = 1;` \n\n#### public abstract boolean\n**hasDebugOptions**\n()\n\n\u003cbr /\u003e\n\n```\n EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.\n \n```\n`.tensorflow.DebugOptions debug_options = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasExperimental**\n()\n\n`.tensorflow.RunOptions.Experimental experimental = 8;`"]]