Creates a tensor with all elements set to zero. This operation returns a tensor of type `dtype` with shape `shape` and all elements set to zero. ```python @tf_export("zeros") def zeros(shape, dtype=dtypes.float32, name=None): ``` For example: ```python tf.zeros([3, 4], tf.int32) # [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] ```
Activity
Oceania2018 commentedon Jan 28, 2019
Support small size zeros and big size zeros. if size > 1000, TF.NET will allocate memory until session runs.
finished tf.zeros #143