Struct tensorflow::ops::Const
source · pub struct Const { /* private fields */ }
Expand description
Builder for the Const
operation.
Implementations§
source§impl Const
impl Const
sourcepub fn value<T: TensorType, ArgType: Into<Tensor<T>>>(
self,
value: ArgType
) -> Self
pub fn value<T: TensorType, ArgType: Into<Tensor<T>>>( self, value: ArgType ) -> Self
Sets the value
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_instance(&self, scope: &mut Scope) -> Result<ConstInst>
pub fn build_instance(&self, scope: &mut Scope) -> Result<ConstInst>
Builds a new instance of ‘Const’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Const
impl !Send for Const
impl !Sync for Const
impl Unpin for Const
impl !UnwindSafe for Const
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