Struct tensorflow::ops::SnapshotDataset
source · pub struct SnapshotDataset { /* private fields */ }
Expand description
Builder for the SnapshotDataset
operation.
Implementations§
source§impl SnapshotDataset
impl SnapshotDataset
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_path_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn reader_path_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the reader_path_prefix
attribute.
sourcepub fn writer_path_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn writer_path_prefix<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the writer_path_prefix
attribute.
sourcepub fn shard_size_bytes<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn shard_size_bytes<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the shard_size_bytes
attribute.
sourcepub fn pending_snapshot_expiry_seconds<ArgType: Into<i64>>(
self,
value: ArgType
) -> Self
pub fn pending_snapshot_expiry_seconds<ArgType: Into<i64>>( self, value: ArgType ) -> Self
Sets the pending_snapshot_expiry_seconds
attribute.
sourcepub fn num_reader_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_reader_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_reader_threads
attribute.
sourcepub fn reader_buffer_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn reader_buffer_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the reader_buffer_size
attribute.
sourcepub fn num_writer_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_writer_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_writer_threads
attribute.
sourcepub fn writer_buffer_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn writer_buffer_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the writer_buffer_size
attribute.
sourcepub fn shuffle_on_read<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn shuffle_on_read<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the shuffle_on_read
attribute.
sourcepub fn snapshot_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn snapshot_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the snapshot_name
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,
path: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, input_dataset: O0, path: O1, scope: &mut Scope ) -> Result<Operation>
Builds the SnapshotDataset
operation.
sourcepub fn build_instance(
&self,
input_dataset: Output,
path: Output,
scope: &mut Scope
) -> Result<SnapshotDatasetInst>
pub fn build_instance( &self, input_dataset: Output, path: Output, scope: &mut Scope ) -> Result<SnapshotDatasetInst>
Builds a new instance of ‘SnapshotDataset’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SnapshotDataset
impl Debug for SnapshotDataset
source§impl Default for SnapshotDataset
impl Default for SnapshotDataset
source§fn default() -> SnapshotDataset
fn default() -> SnapshotDataset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotDataset
impl Send for SnapshotDataset
impl Sync for SnapshotDataset
impl Unpin for SnapshotDataset
impl UnwindSafe for SnapshotDataset
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