HaoKang-Timmy opened a new issue, #12536:
URL: https://github.com/apache/tvm/issues/12536
Hi, I want to use tvm.parse.parse_expr. But it can not parse operator
'broadcast_to'.
Here is the code.
'''
import tvm
from tvm import relay, auto_scheduler
from tvm.relay import data_dep_optimization as ddo
import tvm.relay.testing
from tvm.contrib import graph_executor
from tvm.contrib.utils import tempdir
a = relay.var("a", shape=[1, 10])
out = relay.broadcast_to(a, shape=[1,10])
func = relay.Function([a], out)
SEMVER = '#[version = "0.0.5"]\n'
code = str(func)
expr = tvm.parser.parse_expr(SEMVER + code)
print(expr)
'''
error: unable to determine the 'attrs_type_key' with which to represent the
call attributes for this operator
--> string:3:3
|
3 | broadcast_to(%a, shape=[1, 10])
| ^^^^^^^^^^^^
'''
'''
Is there any way to avoid this problem?
--
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]