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