loupe.zeros#
- loupe.zeros(shape, dtype=None, requires_grad=False)[source]#
Return a new array with values set to zeros.
- Parameters:
shape (int or tuple of ints) – Shape of the array
dtype (data type, optional) – Desired data type for the array
requires_grad (bool, optional) – It True, gradients will be computed for this array. Default is False.
- Returns:
out – Array of zeros with the given shape and dtype.
- Return type:
See also
zeros_like
Return an array of zeros with shape and type of input.
ones
Return a new array with values set to ones.