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