AttributeError: module 'tvm.autotvm' has no attribute 'template'

Hi,

When I tried to ran the sample of tuning as in https://docs.tvm.ai/tutorials/autotvm/tune_conv2d_cuda.html , this issue occurred.

root@nvidia-desktop:/home/nvidia/Downloads# python3 tune_conv2d_cuda.py Traceback (most recent call last):

File “tune_conv2d_cuda.py”, line 82, in @autotvm.template(“tutorial/conv2d_no_batching”)

AttributeError: module ‘tvm.autotvm’ has no attribute ‘template’

What should I do to fix this issue?

Thanks

Did you update the TVM to the master head? It requires PR 5034 which was merged 5 days ago.

1 Like

Thank comaniac, It works now … my source code was a week ago …