mulanxiaodingdang opened a new issue, #18048:
URL: https://github.com/apache/tvm/issues/18048

   When compiling an ONNX model using TVM's Relax, the generated .so files are 
identical when setting opt_level=0, opt_level=1, opt_level=3, and opt_level=4.
   The compilation code I used is as follows:
   
   `onnx_model = onnx.load(onnx_path)
       onnx_name = os.path.splitext(os.path.basename(onnx_path))[0]
       print(onnx_name)
   
       from tvm.relax.frontend.onnx import from_onnx
       mod = from_onnx(onnx_model)  
   
       with tvm.transform.PassContext(opt_level=0):
           ex = relax.build(mod, target="llvm")
   
       libpath = os.path.join(base_path, f"{onnx_name}_relax_O0.so")`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to