Struct tensorflow::ops::PrivateThreadPoolDataset
source · pub struct PrivateThreadPoolDataset { /* private fields */ }
Expand description
Builder for the PrivateThreadPoolDataset
operation.
Implementations§
source§impl PrivateThreadPoolDataset
impl PrivateThreadPoolDataset
sourcepub fn output_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn output_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the output_types
attribute.
sourcepub fn output_shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
pub fn output_shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
Sets the output_shapes
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<O0: Into<Output>, O1: Into<Output>>(
&self,
input_dataset: O0,
num_threads: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, input_dataset: O0, num_threads: O1, scope: &mut Scope ) -> Result<Operation>
Builds the PrivateThreadPoolDataset
operation.
sourcepub fn build_instance(
&self,
input_dataset: Output,
num_threads: Output,
scope: &mut Scope
) -> Result<PrivateThreadPoolDatasetInst>
pub fn build_instance( &self, input_dataset: Output, num_threads: Output, scope: &mut Scope ) -> Result<PrivateThreadPoolDatasetInst>
Builds a new instance of ‘PrivateThreadPoolDataset’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for PrivateThreadPoolDataset
impl Debug for PrivateThreadPoolDataset
source§impl Default for PrivateThreadPoolDataset
impl Default for PrivateThreadPoolDataset
source§fn default() -> PrivateThreadPoolDataset
fn default() -> PrivateThreadPoolDataset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PrivateThreadPoolDataset
impl Send for PrivateThreadPoolDataset
impl Sync for PrivateThreadPoolDataset
impl Unpin for PrivateThreadPoolDataset
impl UnwindSafe for PrivateThreadPoolDataset
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