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