Compute the cosine function each element in a tensor. There is a method version of this static function: Tensor.cos.
$$\cos(x) : \forall x \in T$$
const t = sm.randn([128, 128]) // equivalent calls const a = t.cos() const b = sm.cos(t)
Tensor whose values will have their cosine calculated
Generated using TypeDoc
Compute the cosine function each element in a tensor. There is a method version of this static function: Tensor.cos.
$$\cos(x) : \forall x \in T$$
Example
Returns