From 4fd3cef870d8cec12a278bb5bbddeedd2493043a Mon Sep 17 00:00:00 2001 From: cheng wen Date: Fri, 12 Jan 2024 12:00:06 +0000 Subject: [PATCH] fix onnx frontend --- python/tvm/relax/frontend/onnx/onnx_frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/relax/frontend/onnx/onnx_frontend.py b/python/tvm/relax/frontend/onnx/onnx_frontend.py index 0b5aa4f7ec7a..240d4fb6aa59 100644 --- a/python/tvm/relax/frontend/onnx/onnx_frontend.py +++ b/python/tvm/relax/frontend/onnx/onnx_frontend.py @@ -1983,8 +1983,8 @@ def from_onnx(self, graph: onnx.onnx_ml_pb2.ModelProto, opset: int) -> IRModule: with self.bb.function("main"): with self.bb.dataflow() as df: # pylint: disable=invalid-name, unused-variable self.opset = opset - self._parse_graph_input(graph) self._parse_graph_initializers(graph) + self._parse_graph_input(graph) self._check_for_unsupported_ops(graph) self._construct_nodes(graph)