Struct tensorflow::expr::Neg
source · pub struct Neg<T: TensorType> { /* private fields */ }
Expand description
Expression resulting from negation of an expression.
Trait Implementations§
source§impl<T: TensorType> Display for Neg<T>
impl<T: TensorType> Display for Neg<T>
source§impl<T: TensorType> ExprImpl<T> for Neg<T>
impl<T: TensorType> ExprImpl<T> for Neg<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 Neg<T>
impl<T> !Send for Neg<T>
impl<T> !Sync for Neg<T>
impl<T> Unpin for Neg<T>
impl<T> !UnwindSafe for Neg<T>
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