[][src]Struct tensorflow_proto::xrt::XrtExecutionConfig

pub struct XrtExecutionConfig {
    pub device_ordinal: i32,
    pub core_index_in_replica: i32,
    pub execution_instance_key: String,
    pub rng_seed: u32,
    pub release_input_handles: bool,
    pub release_compilation_handle: bool,
    pub return_exploded_tuple: bool,
}

Options for an XLA execution.

Fields

device_ordinal: i32

Local device to run on. This is present because the execute Op may be placed on a device such as CPU or TPU_SYSTEM that logically manages multiple cores.

core_index_in_replica: i32

Which model-parallel computation to run from the compiled bundle.

execution_instance_key: String

Optional key to disambiguate between executions. This is only needed if multiple host send/recvs may be outstanding concurrently with executions.

rng_seed: u32

If non-zero, rng_seed to reset the core with.

release_input_handles: bool

If true, release allocation handles on the inputs after running.

release_compilation_handle: bool

If true, release the handle to the computation after running.

return_exploded_tuple: bool

If set to true, and the result shape is a tuple, then instead of returning a single tuple allocation the execution will return a vector of allocations, one for each of the first-level elements of the result tuple.

Trait Implementations

impl Clone for XrtExecutionConfig[src]

impl Debug for XrtExecutionConfig[src]

impl Default for XrtExecutionConfig[src]

impl Message for XrtExecutionConfig[src]

impl PartialEq<XrtExecutionConfig> for XrtExecutionConfig[src]

impl StructuralPartialEq for XrtExecutionConfig[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.