Skip to content

Commit ccd4bbd

Browse files
authored
Flatten output arguments before returning them
1 parent 584861f commit ccd4bbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/tvm/relax/frontend/torch/exported_program_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ def _translate_fx_graph(
13381338
raise ValueError(f"Unsupported op {node.op}")
13391339

13401340
assert output_args is not None
1341-
return output_args
1341+
return self._flatten_output_args(output_args)
13421342

13431343
@staticmethod
13441344
def _flatten_output_args(output_args) -> tuple[relax.Expr, ...]:

0 commit comments

Comments
 (0)