zyhDuludulu opened a new issue, #17553:
URL: https://github.com/apache/tvm/issues/17553
Hi, I encountered a problem when trying to import tvm.relax
```
$ python
$ import tvm.relax
```
### Expected behavior
import successfully
### Actual behavior
```bash
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/projects/tvm/python/tvm/relax/__init__.py", line 68, in
<module>
from .op.base import (
File "/home/projects/tvm/python/tvm/relax/op/__init__.py", line 21, in
<module>
from . import _op_gradient, builtin, ccl, distributed, grad, image,
memory, nn, op_attrs
File "/home/projects/tvm/python/tvm/relax/op/_op_gradient.py", line 130,
in <module>
def add_grad(
File "/home/projects/tvm/python/tvm/ir/op.py", line 241, in _register
_ffi_api.RegisterOpAttr(op_name, attr_key, v, level)
AttributeError: module 'tvm.ir._ffi_api' has no attribute 'RegisterOpAttr'
```
### Environment
I'm working on Ubuntu 24.04, and the TVM version is 0.19.dev0
### Steps to reproduce
install TVM:
https://tvm.apache.org/docs/install/from_source.html#install-from-source
I set the `USE_CUDA` option to ON by the way
then when I tried to import tvm.relax or tvm.relay, this error occurred.
I would be grateful if someone can hep me out!
--
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]