Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module tvm.relay._make has no attribute Any #3576

Closed
SerenaC94 opened this issue Jul 18, 2019 · 7 comments
Closed

AttributeError: module tvm.relay._make has no attribute Any #3576

SerenaC94 opened this issue Jul 18, 2019 · 7 comments

Comments

@SerenaC94
Copy link

Hi,
I updated TVM with a git pull, and now any program that uses Relay returns the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/curzel/tvm/python/tvm/relay/__init__.py", line 22, in <module>
    from . import ty
  File "/home/curzel/tvm/python/tvm/relay/ty.py", line 23, in <module>
    Any = _make.Any
AttributeError: module 'tvm.relay._make' has no attribute 'Any'

It's been some days and I found nobody else reporting this on the discussion forum, so could it be my fault? Did I miss some change in the way Relay is imported in python?

@wweic
Copy link
Contributor

wweic commented Jul 18, 2019

Hi @SerenaC94, we usually use https://discuss.tvm.ai/ for questions. Also please provide the code you use to produce such error.

@SerenaC94
Copy link
Author

we usually use https://discuss.tvm.ai/ for questions.

I am aware of that, but I wrote the same thing there last week and there was no answer

Also please provide the code you use to produce such error.

That was the error when writing
from tvm import relay
in a python3 prompt

@tqchen tqchen closed this as completed Jul 18, 2019
@tqchen
Copy link
Member

tqchen commented Jul 18, 2019

Would be great if you can update on the discuss thread. The reason that you get the errror was likely due to you did not rebuild the libtvm.so

@SerenaC94
Copy link
Author

Ok, thanks. That is probably the issue, I will update the discussion thread if anything else comes up.

@JimmyLauren
Copy link

Hi, I solved this problem by install libtinfo using this command "sudo apt install libtinfo-dev"

@Ignite616
Copy link

Ok, thanks. That is probably the issue, I will update the discussion thread if anything else comes up.
Hello, I also encountered the same problem, how did you solve your previous problem?

@pfk-beta
Copy link
Contributor

pfk-beta commented Oct 25, 2024

In my situation, I had only tvm_runtime. After building whole tvm, and reinstalling python module, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants