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