ClikaRT::ops::mul
function
2 overloads.
mul(Tensor, ScalarOrTensor, Activation)
Tensor mul(
Tensor a,
ScalarOrTensor other,
Activation activation = Activation::Identity
)
Multiplies a by other elementwise.
Broadcasts and promotes as add; activation is the same fused float-only epilogue (default Activation::Identity).
Returns: the broadcast-shaped product at the promoted dtype.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible. Also raises (INVALID_ARGUMENT) for a non-floatactivationoperand dtype.
Declared in ClikaRT/compute/ops.h, line 1495
mul(Scalar, Tensor, Activation)
Tensor mul(
Scalar a,
Tensor b,
Activation activation = Activation::Identity
)
Scalar-LHS . a keeps its kind (see Scalar). activation applies to the result, mirroring the tensor-first form (mul carries no alpha; it would fold into the scalar).
Declared in ClikaRT/compute/ops.h, line 1502