Trait dfdx::tensor_ops::TryAdd

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

Fallible version of std::ops::Add. See add

Required Methods§

source

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

Implementors§

source§

impl<S: Shape, E: Dtype, D, LhsTape, R> TryAdd<Tensor<S, E, D, R>> for Tensor<S, E, D, LhsTape>where D: BinaryKernel<BinaryAddKernelOp, E>, LhsTape: Merge<R> + Tape<E, D>,

source§

impl<S: Shape, E: Dtype, D: UnaryKernel<ScalarAddKernelOp<E>, E>, T: Tape<E, D>> TryAdd<E> for Tensor<S, E, D, T>