Skip to main content

//clika-runtime/io.clika.runtime/Ops/subInPlace

subInPlace

[common]
fun subInPlace(self: Tensor, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): Tensor

subInPlace(self: Tensor, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the sub_ operator. In-place sub: writes through x. Writes through self and returns it, so calls chain.

[common]
fun subInPlace(self: Tensor, other: Double, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): Tensor

subInPlace(self: Tensor, other: Double, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the number form of sub_, other as a scalar.