pytorch
- RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead.
- torch.meshgrid behaves differently with numpy.meshgrid:
torch.meshgrid(...)
is equal to np.meshgrid(..., indexing='ij')
while the default in numpy is indexing='xy'
repeat()
is similar with np.tile()