File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ std::vector<Tensor> meshgrid(TensorList tensors) {
618618 shape[i] = tensors[i].size (0 );
619619 break ;
620620 default :
621- AT_ERROR (" input tensor of meshgrid must be scalar or vector " );
621+ AT_ERROR (" Expected scalar or 1D tensor in the tensor list but got: " , tensors[i] );
622622 }
623623 }
624624 std::vector<Tensor> grids;
Original file line number Diff line number Diff line change @@ -5839,9 +5839,9 @@ def parse_kwargs(desc):
58395839 r"""
58405840meshgrid(seq) -> seq
58415841
5842- Take a sequence of :math:`N` tensors, each of which be either scalar or 1-dimensional vector,
5843- and create :math:`N` grids, where the :math:`i`th grid is defined by expanding the :math:`i`th
5844- input over dimensions defined by other inputs.
5842+ Take a sequence of :math:`N` tensors, each of which can be either scalar or 1-dimensional
5843+ vector, and create :math:`N` N-dimensional grids, where the :math:`i`th grid is defined by
5844+ expanding the :math:`i`th input over dimensions defined by other inputs.
58455845
58465846Arguments:
58475847 seq (sequence of Tensors): sequence of scalars or 1 dimensional tensors. Scalars will be
You can’t perform that action at this time.
0 commit comments