Skip to content

Commit

Permalink
remove unreachable assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetcocoa committed Apr 4, 2023
1 parent eb75592 commit 6120407
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5019,10 +5019,8 @@ def from_pytorch(
_data_inputs = []
for input_info in input_infos:
_data_input = [di for di in data_inputs if di.name_hint == input_info[0]]
if len(_data_input) != 1:
msg = "Unexpected input name ({}) which is unreachable.".format(input_info[0])
raise RuntimeError(msg)
_data_inputs.append(_data_input[0])
if len(_data_input) == 1:
_data_inputs.append(_data_input[0])
data_inputs = _data_inputs

func_args = data_inputs + func_args
Expand Down

0 comments on commit 6120407

Please sign in to comment.