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