Creates a tf.Tensor with all elements set to 0.
tf.Tensor
tf.zeros([2, 2]).print(); Copy
tf.zeros([2, 2]).print();
An array of integers defining the output tensor shape.
Optional
The type of an element in the resulting tensor. Can be 'float32', 'int32' or 'bool'. Defaults to 'float'.
Creates a
tf.Tensor
with all elements set to 0.