Skip to main content

//clika-runtime/io.clika.runtime/Ops/addInPlace

addInPlace

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

addInPlace(self: Tensor, other: Tensor, alpha: Double = 1.0, activation: Activation = Activation.IDENTITY): the add_ operator. In-place add: writes through x; semantics as ops::add (which also documents broadcasting/promotion). Writes through self and returns it, so calls chain.

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

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