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