pub trait NumericOps<I: Numeric>: NumOps + NumOps<I, Self> + Sized {
    // Required methods
    fn sum(&self, dim: isize) -> Self;
    fn mm(&self, rhs: &Self) -> Self;
    fn min(&self, dim: isize) -> Self;
    fn max(&self, dim: isize) -> Self;

    // Provided method
    fn max_over(&self, _dim: isize) -> Self { ... }
}
Expand description

Differentiable mid-level operations that are also implemented for non-differentiable Numeric inner types.

Required Methods§

source

fn sum(&self, dim: isize) -> Self

source

fn mm(&self, rhs: &Self) -> Self

source

fn min(&self, dim: isize) -> Self

source

fn max(&self, dim: isize) -> Self

Provided Methods§

source

fn max_over(&self, _dim: isize) -> Self

Implementors§

source§

impl<T: Numeric> NumericOps<T> for Tensor<T>

source§

impl<T: Real> NumericOps<T> for Variable<T>