coffezhou commented on issue #17745:
URL: https://github.com/apache/tvm/issues/17745#issuecomment-2726478968

   > For relax.build() to work properly, it expects the model to be lowered to 
TensorIR before compilation.
   > 
   > Before calling relax.build(), add this transformation: tvm_model = 
relax.transform.LowerToTensorIR()(tvm_model)
   > 
   > It should work.
   
   @Kushagra-88 Thanks for your reply! I have tried your method, but it gives 
the following output:
   ```c
   tvm_model = relax.transform.LowerToTensorIR()(tvm_model)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   AttributeError: module 'tvm.relax.transform' has no attribute 
'LowerToTensorIR'
   ```
   I also try to search 'LowerToTensorIR' in the TVM  repository on github. 
Unfortunately, LowerToTensorIR is not found in the current TVM repository. As 
stated in document, by using 'tvm_model = 
relax.transform.LegalizeOps()(tvm_model)' , the model should be lowered to 
TensorIR.


-- 
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