Skip to content

Commit e9bea9d

Browse files
authored
[Relax][Frontend][ONNX]fix onnx frontend parse (#16395)
fix onnx frontend Co-authored-by: cheng wen <chengven027-intellif>
1 parent 5c87bfe commit e9bea9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/relax/frontend/onnx/onnx_frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1983,8 +1983,8 @@ def from_onnx(self, graph: onnx.onnx_ml_pb2.ModelProto, opset: int) -> IRModule:
19831983
with self.bb.function("main"):
19841984
with self.bb.dataflow() as df: # pylint: disable=invalid-name, unused-variable
19851985
self.opset = opset
1986-
self._parse_graph_input(graph)
19871986
self._parse_graph_initializers(graph)
1987+
self._parse_graph_input(graph)
19881988
self._check_for_unsupported_ops(graph)
19891989
self._construct_nodes(graph)
19901990

0 commit comments

Comments
 (0)