torch.functional.meshgrid
- torch.functional.meshgrid(*tensors, indexing=None)
Creates grids of coordinates specified by the 1D inputs in attr:tensors.
This is helpful when you want to visualize data over some range of inputs. See below for a plotting example.
Given 1D tensors as inputs with corresponding sizes , this creates N-dimensional tensors , each with shape where the output is constructed by expanding to the result shape.
