Trait dfdx::tensor_ops::TrySub

source ·
pub trait TrySub<Rhs = Self>: HasErr {
    // Required method
    fn try_sub(self, rhs: Rhs) -> Result<Self, Self::Err>;
}
Expand description

Fallible version of std::ops::Sub. See sub

Required Methods§

source

fn try_sub(self, rhs: Rhs) -> Result<Self, Self::Err>

Implementors§

source§

impl<S: Shape, E: Dtype, D: BinaryKernel<BinarySubKernelOp, E>, LTape, R> TrySub<Tensor<S, E, D, R>> for Tensor<S, E, D, LTape>where LTape: Merge<R> + Tape<E, D>,

source§

impl<S: Shape, E: Dtype, D: UnaryKernel<ScalarSubKernelOp<E>, E>, T: Tape<E, D>> TrySub<E> for Tensor<S, E, D, T>