Trait dfdx::tensor_ops::TryMul

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

Fallible version of std::ops::Mul. See mul.

Required Methods§

source

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

Implementors§

source§

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

source§

impl<S: Shape, E: Dtype, D: UnaryKernel<ScalarMulKernelOp<E>, E>, T: Tape<E, D>> TryMul<E> for Tensor<S, E, D, T>