Skip to main content

//clika-runtime/io.clika.runtime/Ops/mul

mul

[common]
fun mul(input: Tensor, other: Tensor, activation: Activation = Activation.IDENTITY): Tensor

mul(input: Tensor, other: Tensor, activation: Activation = Activation.IDENTITY): the mul operator. Multiplies input by other elementwise. Broadcasts and promotes as add; activation is the same fused float-only epilogue (default Activation::Identity).

[common]
fun mul(input: Tensor, other: Double, activation: Activation = Activation.IDENTITY): Tensor

mul(input: Tensor, other: Double, activation: Activation = Activation.IDENTITY): the number form of mul, other as a scalar.

[common]
fun mul(input: Double, other: Tensor, activation: Activation = Activation.IDENTITY): Tensor

mul(input: Double, other: Tensor, activation: Activation = Activation.IDENTITY): the mul operator. 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).