Struct tensorflow::ops::GeneratorDataset
source · pub struct GeneratorDataset { /* private fields */ }
Expand description
Builder for the GeneratorDataset
operation.
Implementations§
source§impl GeneratorDataset
impl GeneratorDataset
sourcepub fn init_func<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn init_func<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the init_func
attribute.
sourcepub fn next_func<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn next_func<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the next_func
attribute.
sourcepub fn finalize_func<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn finalize_func<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the finalize_func
attribute.
sourcepub fn Tinit_func_args<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Tinit_func_args<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Tinit_func_args
attribute.
sourcepub fn Tnext_func_args<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Tnext_func_args<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Tnext_func_args
attribute.
sourcepub fn Tfinalize_func_args<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Tfinalize_func_args<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Tfinalize_func_args
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,
init_func_other_args: O0,
next_func_other_args: O1,
finalize_func_other_args: O2,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>>( &self, init_func_other_args: O0, next_func_other_args: O1, finalize_func_other_args: O2, scope: &mut Scope ) -> Result<Operation>
Builds the GeneratorDataset
operation.
sourcepub fn build_instance(
&self,
init_func_other_args: Output,
next_func_other_args: Output,
finalize_func_other_args: Output,
scope: &mut Scope
) -> Result<GeneratorDatasetInst>
pub fn build_instance( &self, init_func_other_args: Output, next_func_other_args: Output, finalize_func_other_args: Output, scope: &mut Scope ) -> Result<GeneratorDatasetInst>
Builds a new instance of ‘GeneratorDataset’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for GeneratorDataset
impl Debug for GeneratorDataset
source§impl Default for GeneratorDataset
impl Default for GeneratorDataset
source§fn default() -> GeneratorDataset
fn default() -> GeneratorDataset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GeneratorDataset
impl Send for GeneratorDataset
impl Sync for GeneratorDataset
impl Unpin for GeneratorDataset
impl UnwindSafe for GeneratorDataset
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