pku-liang / HASCO

agile hardware-software co-design
Apache License 2.0
44 stars 8 forks source link

AttributeError: module 'tvm' has no attribute 'schedule' #3

Closed Jackwin closed 3 years ago

Jackwin commented 3 years ago

Traceback (most recent call last): File "testbench/co_resnet_gemm.py", line 8, in from codesign.hw_evaluation import gen_software File "./src/codesign/hw_evaluation.py", line 3, in from codesign.ppa_model import PPAModel, gen_config File "./src/codesign/ppa_model.py", line 12, in from codesign.flextensor_extend import parse_schedule File "./src/codesign/flextensor_extend.py", line 4, in from flextensor.task import Task File "./src/flextensor/task.py", line 3, in from flextensor.space import EnumSpace File "./src/flextensor/space.py", line 7, in from flextensor.utils import (assert_print, gen_enum, any_factor_split, get_factor_lst, gen_group, File "./src/flextensor/utils.py", line 328, in def get_iter_info(s: tvm.schedule.Schedule): AttributeError: module 'tvm' has no attribute 'schedule'

Dear folks,

First, quite appreciate your time in this issue.

After the successful installation required by the HSACO, the error pops out when running the following test case. From the above log, we can see the errors stems from the TVM. My question is what the configuration in config.cmake file should be? Could you give an instance? python testbench/co_resnet_gemm.py

Thanks

zw22zw22 commented 3 years ago

well, I have configured the code running environment in the docker of ubuntu20.04. It is really hard and complicated. So I give the full installation step with Docker, TVM, Ax, Maestro and some dependences.

Jackwin commented 3 years ago

Hi @zw22zw22 Thanks for your quick reply.

Another error pops out when executing the cmake .. command in the build folder for TMV. From the log, it seems it does not work for the config "(USE_LLVM llvm-config-9"? What's your solution? Thanks. image

zw22zw22 commented 3 years ago

Hi @zw22zw22 Thanks for your quick reply.

Another error pops out when executing the cmake .. command in the build folder for TMV. From the log, it seems it does not work for the config "(USE_LLVM llvm-config-9"? What's your solution? Thanks. image

do you install llvm-9?

sudo apt-get install llvm-9
Jackwin commented 3 years ago

@zw22zw22 The issue is fixed after the re-installation of llvm-9. Thanks.

walkershaw commented 3 years ago

@zw22zw22 Thanks for your docker tutorial! That's very helpful for the staters.

hyrnb commented 8 months ago

When I run HASCO code by "python3 testbench/co_resnet_conv.py", an error pops like this.(I have already done the above steps). @zw22zw22 Could you please give your solution? HASCO

yfxiao2 commented 3 months ago

@zw22zw22 I used your docker but got the same error: 'AttributeError: module 'tvm' has no attribute 'schedule''. Any ideas what should I do next?

hyrnb commented 2 months ago

@zw22zw22 I used your docker but got the same error: 'AttributeError: module 'tvm' has no attribute 'schedule''. Any ideas what should I do next?

I can't solve this, and still looking forward to @zw22zw22's reply.