Struct tensorflow::ops::ThreadPoolHandle
source · pub struct ThreadPoolHandle { /* private fields */ }
Expand description
Builder for the ThreadPoolHandle
operation.
Implementations§
source§impl ThreadPoolHandle
impl ThreadPoolHandle
sourcepub fn num_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_threads
attribute.
sourcepub fn max_intra_op_parallelism<ArgType: Into<i64>>(
self,
value: ArgType
) -> Self
pub fn max_intra_op_parallelism<ArgType: Into<i64>>( self, value: ArgType ) -> Self
Sets the max_intra_op_parallelism
attribute.
sourcepub fn display_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn display_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the display_name
attribute.
sourcepub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the container
attribute.
Sets the shared_name
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build(&self, scope: &mut Scope) -> Result<Operation>
pub fn build(&self, scope: &mut Scope) -> Result<Operation>
Builds the ThreadPoolHandle
operation.
sourcepub fn build_instance(&self, scope: &mut Scope) -> Result<ThreadPoolHandleInst>
pub fn build_instance(&self, scope: &mut Scope) -> Result<ThreadPoolHandleInst>
Builds a new instance of ‘ThreadPoolHandle’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for ThreadPoolHandle
impl Debug for ThreadPoolHandle
source§impl Default for ThreadPoolHandle
impl Default for ThreadPoolHandle
source§fn default() -> ThreadPoolHandle
fn default() -> ThreadPoolHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ThreadPoolHandle
impl Send for ThreadPoolHandle
impl Sync for ThreadPoolHandle
impl Unpin for ThreadPoolHandle
impl UnwindSafe for ThreadPoolHandle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more