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