chuqingG opened a new issue #9803:
URL: https://github.com/apache/tvm/issues/9803


   ### Expected behavior
   
   In your 
[doc](https://tvm.apache.org/docs/reference/api/python/ir.html?highlight=from_expr#tvm.ir.IRModule.from_expr)
 I found that the return type is `tvm.runtime.Module`
   
   ### Actual behavior
   
   When I ran code as following:
   ```python
   mod = tvm.IRModule.from_expr(func)  # note this API
   print(mod.imported_modules[0].get_source())
   ```
   It showed that :
   ```bash
   Traceback (most recent call last):
     File "test_api.py", line 11, in <module>
       print(mod.imported_modules[0].get_source())
     File "/home/v-chuqinggao/tvm/python/tvm/runtime/object.py", line 67, in 
__getattr__
       raise AttributeError("%s has no attribute %s" % (str(type(self)), name))
   AttributeError: <class 'tvm.ir.module.IRModule'> has no attribute 
imported_modules
   ```
   which means the actual return type is `tvm.ir.module.IRModule`
   
   ### Environment
   
   tvm=0.9.dev0
   
   your current doc version=0.9.dev182+ge718f5a8a


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