Computes cos of the input tf.Tensor element-wise: cos(x)
tf.Tensor
cos(x)
const x = tf.tensor1d([0, Math.PI / 2, Math.PI * 3 / 4]);x.cos().print(); // or tf.cos(x) Copy
const x = tf.tensor1d([0, Math.PI / 2, Math.PI * 3 / 4]);x.cos().print(); // or tf.cos(x)
The input tensor. Must be float32 type.
Generated using TypeDoc
Computes cos of the input
tf.Tensor
element-wise:cos(x)