Struct tensorflow::eager::raw_ops::OptimizeDatasetV2
source · pub struct OptimizeDatasetV2 { /* private fields */ }
Expand description
OptimizeDatasetV2
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/OptimizeDatasetV2
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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
input_dataset: &T0,
optimizations_enabled: &T1,
optimizations_disabled: &T2,
optimizations_default: &T3
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>( &self, ctx: &'a Context, input_dataset: &T0, optimizations_enabled: &T1, optimizations_disabled: &T2, optimizations_default: &T3 ) -> Result<TensorHandle<'a>>
Execute optimize_dataset_v2.
Trait Implementations§
source§impl Clone for OptimizeDatasetV2
impl Clone for OptimizeDatasetV2
source§fn clone(&self) -> OptimizeDatasetV2
fn clone(&self) -> OptimizeDatasetV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptimizeDatasetV2
impl Debug for OptimizeDatasetV2
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