//clika-runtime/io.clika.runtime/Ops/sub
sub
[common]
fun sub(input: Tensor, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): Tensor
sub(input: Tensor, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the sub operator. Subtracts other (scaled) from input elementwise. Broadcasts and promotes as add; alpha (default 1.0) scales other before the subtract, and activation is the same fused float-only epilogue (default Activation::Identity).
[common]
fun sub(input: Tensor, other: Double, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): Tensor
sub(input: Tensor, other: Double, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the number form of sub, other as a scalar.
[common]
fun sub(input: Double, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): Tensor
sub(input: Double, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the sub operator. Scalar-LHS . input keeps its kind (see Scalar). The parameter set mirrors the tensor-first form: alpha scales the TENSOR operand other, activation applies to the result.