ClikaRT::ops::mul
function
2 overloads.
mul(Tensor, ScalarOrTensor, Activation)
Tensor mul(
Tensor input,
ScalarOrTensor other,
Activation activation = Activation::Identity
)
Multiplies input 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 1507
mul(Scalar, Tensor, Activation)
Tensor mul(
Scalar input,
Tensor other,
Activation activation = Activation::Identity
)
Scalar-LHS . input 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 1514