Negate a tensor. There is a method version of this static function: Tensor.negative.
$$-x : \forall x \in T$$
const t = sm.randn([100]) // equivalent calls const a = t.negative() const b = sm.negative(t)
Tensor whose values will be negated
Generated using TypeDoc
Negate a tensor. There is a method version of this static function: Tensor.negative.
$$-x : \forall x \in T$$
Example
Returns