Struct tensorflow::expr::Variable
source · pub struct Variable<T: TensorType> { /* private fields */ }
Expand description
Expression for a variable.
Implementations§
Trait Implementations§
source§impl<T: TensorType> Display for Variable<T>
impl<T: TensorType> Display for Variable<T>
source§impl<T: TensorType> ExprImpl<T> for Variable<T>
impl<T: TensorType> ExprImpl<T> for Variable<T>
source§fn create_operation(
&self,
graph: &mut Graph,
_children: &[Operation],
_id_gen: &mut dyn FnMut() -> String
) -> Result<Operation, Status>
fn create_operation( &self, graph: &mut Graph, _children: &[Operation], _id_gen: &mut dyn FnMut() -> String ) -> Result<Operation, Status>
Creates an operation for the expression. Read more
source§fn derivative_by_variable(&self, var: &str) -> Result<Expr<T>, Status>
fn derivative_by_variable(&self, var: &str) -> Result<Expr<T>, Status>
Returns the derivative of the expression with respect to the given variable.
source§fn shape_hint(&self) -> ShapeHint<'_>
fn shape_hint(&self) -> ShapeHint<'_>
Returns a hint about the expression’s shape.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Variable<T>where T: RefUnwindSafe,
impl<T> Send for Variable<T>where T: Send,
impl<T> Sync for Variable<T>where T: Sync,
impl<T> Unpin for Variable<T>where T: Unpin,
impl<T> UnwindSafe for Variable<T>where T: UnwindSafe,
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