Creates a tf.Tensor with all elements set to 0 with the same shape as the given tensor.
tf.Tensor
const x = tf.tensor([1, 2]);tf.zerosLike(x).print(); Copy
const x = tf.tensor([1, 2]);tf.zerosLike(x).print();
The tensor of required shape.
Generated using TypeDoc
Creates a
tf.Tensor
with all elements set to 0 with the same shape as the given tensor.