We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a33b2 commit 1701b76Copy full SHA for 1701b76
pytorch3d/common/compat.py
@@ -66,7 +66,10 @@ def meshgrid_ij(
66
"""
67
Like torch.meshgrid was before PyTorch 1.10.0, i.e. with indexing set to ij
68
69
- if "indexing" in torch.meshgrid.__kwdefaults__:
+ if (
70
+ torch.meshgrid.__kwdefaults__ is not None
71
+ and "indexing" in torch.meshgrid.__kwdefaults__
72
+ ):
73
# PyTorch >= 1.10.0
74
return torch.meshgrid(*A, indexing="ij")
75
return torch.meshgrid(*A)
0 commit comments