tf.keras.ops.zeros

Return a new tensor of given shape and type, filled with zeros.

Main aliases

tf.keras.ops.numpy.zeros

shape Shape of the new tensor.
dtype Desired data type of the tensor.

Tensor of zeros with the given shape and dtype.