giagrad.Tensor.zeros#

Tensor.zeros() Tensor[source]#

Fills tensor data with zeros.

Examples

>>> Tensor.empty(2, 3).zeros()
tensor: [[0. 0. 0.]
         [0. 0. 0.]]
>>> Tensor([1, 3, 4, 5]).zeros()
tensor: [0., 0., 0., 0.]