Skip to content

Commit

Permalink
Revert the changes for elif branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearnardd committed May 8, 2023
1 parent 61a8413 commit 5bdcbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_dynamo/variables/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def check_any_unspec(x):
if name in tx.symbolic_locals:
tx.symbolic_locals[name] = tensor_variable.items[idx]
elif isinstance(tensor_variable, TensorVariable):
assert isinstance(kwargs["out"], (TensorVariable, ListVariable))
assert isinstance(kwargs["out"], TensorVariable)
name = tx.find_symbolic_locals_name(kwargs["out"])
if name in tx.symbolic_locals:
tx.symbolic_locals[name] = tensor_variable
Expand Down

0 comments on commit 5bdcbcc

Please sign in to comment.