(torch.dtype
, optional) the desired data type of returned tensor. Default: if None
, uses a global default (see torch_set_default_tensor_type
). If dtype
is not given, infer the data type from the other input arguments. If any of start
, end
, or stop
are floating-point, the dtype
is inferred to be the default dtype, see ~torch.get_default_dtype
. Otherwise, the dtype
is inferred to be torch.int64
.