Hi there,
I'm running the below code and shows the error. May I confirm what I'm missing? Thanks your help!
=================================================
Python 3.7.7 (default, Mar 10 2020, 15:16:38)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import tvm
from tvm import te
tgt_host="llvm"
>>> tgt="sdaccel"
>>>
>>> n = te.var("n")
>>> A = te.placeholder((n,), name='A')
>>> B = te.placeholder((n,), name='B')
>>> C = te.compute(A.shape, lambda i: A[i] + B[i], name="C")
>>>
>>> s = te.create_schedule(C.op)
>>> px, x = s[C].split(C.op.axis[0], nparts=1)
>>>
>>> s[C].bind(px, tvm.thread_axis("pipeline"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tvm' has no attribute 'thread_axis'
=================================================
thread_axis
is in tvm.te
.