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