Struct tensorflow::ops::SnapshotDatasetV2
source · pub struct SnapshotDatasetV2 { /* private fields */ }Expand description
Builder for the SnapshotDatasetV2 operation.
Implementations§
source§impl SnapshotDatasetV2
impl SnapshotDatasetV2
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 compression<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn compression<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the compression attribute.
sourcepub fn reader_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn reader_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the reader_prefix attribute.
sourcepub fn writer_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn writer_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the writer_prefix attribute.
sourcepub fn hash_valid<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn hash_valid<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the hash_valid attribute.
sourcepub fn reader_func<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn reader_func<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the reader_func attribute.
sourcepub fn shard_func<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn shard_func<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the shard_func attribute.
sourcepub fn Treader_func_args<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Treader_func_args<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Treader_func_args attribute.
sourcepub fn Tshard_func_args<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Tshard_func_args<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Tshard_func_args 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,
path: O1,
reader_func_other_args: O2,
shard_func_other_args: 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, path: O1, reader_func_other_args: O2, shard_func_other_args: O3, scope: &mut Scope ) -> Result<Operation>
Builds the SnapshotDatasetV2 operation.
sourcepub fn build_instance(
&self,
input_dataset: Output,
path: Output,
reader_func_other_args: Output,
shard_func_other_args: Output,
scope: &mut Scope
) -> Result<SnapshotDatasetV2Inst>
pub fn build_instance( &self, input_dataset: Output, path: Output, reader_func_other_args: Output, shard_func_other_args: Output, scope: &mut Scope ) -> Result<SnapshotDatasetV2Inst>
Builds a new instance of ‘SnapshotDatasetV2’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SnapshotDatasetV2
impl Debug for SnapshotDatasetV2
source§impl Default for SnapshotDatasetV2
impl Default for SnapshotDatasetV2
source§fn default() -> SnapshotDatasetV2
fn default() -> SnapshotDatasetV2
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotDatasetV2
impl Send for SnapshotDatasetV2
impl Sync for SnapshotDatasetV2
impl Unpin for SnapshotDatasetV2
impl UnwindSafe for SnapshotDatasetV2
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