Skip to content

Commit

Permalink
inp.value == None -> inp.value is None (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
crcrpar authored Nov 4, 2024
1 parent 1de5dd8 commit b74aebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunder/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5750,7 +5750,7 @@ def _get_fake_arg(inp: Any):
if inp is None:
return inp
if isinstance(inp, NumberProxy):
if inp.value == None:
if inp.value is None:
raise NotImplementedError("Unsupported for NumberProxy.value=None")
else:
return inp.value
Expand Down

0 comments on commit b74aebf

Please sign in to comment.