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