Closed vieting closed 3 years ago
tensor.ndimension() is an alias for tensor.dim(), see https://pytorch.org/docs/stable/generated/torch.Tensor.ndimension.html
tensor.ndimension()
tensor.dim()
tensor.ndimension()
is an alias fortensor.dim()
, see https://pytorch.org/docs/stable/generated/torch.Tensor.ndimension.html