[][src]Struct tensorflow_proto::tensorflow::RunOptions

pub struct RunOptions {
    pub trace_level: i32,
    pub timeout_in_ms: i64,
    pub inter_op_thread_pool: i32,
    pub output_partition_graphs: bool,
    pub debug_options: Option<DebugOptions>,
    pub report_tensor_allocations_upon_oom: bool,
    pub experimental: Option<Experimental>,
}

Options for a single Run() call.

Fields

trace_level: i32timeout_in_ms: i64

Time to wait for operation to complete in milliseconds.

inter_op_thread_pool: i32

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().

output_partition_graphs: bool

Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.

debug_options: Option<DebugOptions>

EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.

report_tensor_allocations_upon_oom: bool

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.

experimental: Option<Experimental>

Implementations

impl RunOptions[src]

pub fn trace_level(&self) -> TraceLevel[src]

Returns the enum value of trace_level, or the default if the field is set to an invalid enum value.

pub fn set_trace_level(&mut self, value: TraceLevel)[src]

Sets trace_level to the provided enum value.

Trait Implementations

impl Clone for RunOptions[src]

impl Debug for RunOptions[src]

impl Default for RunOptions[src]

impl Message for RunOptions[src]

impl PartialEq<RunOptions> for RunOptions[src]

impl StructuralPartialEq for RunOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.