View source on GitHub |
Return a new tensor of given shape and type, filled with zeros.
tf.keras.ops.zeros(
shape, dtype=None
)
Args | |
---|---|
shape
|
Shape of the new tensor. |
dtype
|
Desired data type of the tensor. |
Returns | |
---|---|
Tensor of zeros with the given shape and dtype. |