"src/vscode:/vscode.git/clone" did not exist on "27bf7fcd0e8069c623b564dd7024ea782b69dca8"
Commit 1701b76a authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

another meshgrid fix for old pytorch

Summary: Try to fix circleci again.

Reviewed By: nikhilaravi

Differential Revision: D34752188

fbshipit-source-id: 5966c585b61d77df1d8dd97c24383cf74dfb1fae
parent 57a33b25
......@@ -66,7 +66,10 @@ def meshgrid_ij(
"""
Like torch.meshgrid was before PyTorch 1.10.0, i.e. with indexing set to ij
"""
if "indexing" in torch.meshgrid.__kwdefaults__:
if (
torch.meshgrid.__kwdefaults__ is not None
and "indexing" in torch.meshgrid.__kwdefaults__
):
# PyTorch >= 1.10.0
return torch.meshgrid(*A, indexing="ij")
return torch.meshgrid(*A)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment