[][src]Struct tensorflow_proto::tensorflow::ThreadPoolOptionProto

pub struct ThreadPoolOptionProto {
    pub num_threads: i32,
    pub global_name: String,
}

Fields

num_threads: i32

The number of threads in the pool.

0 means the system picks a value based on where this option proto is used (see the declaration of the specific field for more info).

global_name: String

The global name of the threadpool.

If empty, then the threadpool is made and used according to the scope it's in - e.g., for a session threadpool, it is used by that session only.

If non-empty, then:

  • a global threadpool associated with this name is looked up or created. This allows, for example, sharing one threadpool across many sessions (e.g., like the default behavior, if inter_op_parallelism_threads is not configured), but still partitioning into a large and small pool.
  • if the threadpool for this global_name already exists, then it is an error if the existing pool was created using a different num_threads value as is specified on this call.
  • threadpools created this way are never garbage collected.

Trait Implementations

impl Clone for ThreadPoolOptionProto[src]

impl Debug for ThreadPoolOptionProto[src]

impl Default for ThreadPoolOptionProto[src]

impl Message for ThreadPoolOptionProto[src]

impl PartialEq<ThreadPoolOptionProto> for ThreadPoolOptionProto[src]

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