Then I run with TVM_BACKTRACE=1
environment variable to display a backtrace,
Traceback (most recent call last):
File "/root/tvm-v0.10.0/python/tvm/script/utils.py", line 99, in call_with_error_reporting
return func(*args, **kwargs)
File "/root/tvm-v0.10.0/python/tvm/script/tir/special_stmt.py", line 136, in match_buffer
if not isinstance(self.node, ast.Assign) or not len(self.node.lhs) == 1:
TypeError: object of type 'Var' has no len()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tir_ast.py", line 8, in <module>
class MyModule:
File "tir_ast.py", line 10, in MyModule
def main(a: T.handle, b: T.handle):
File "/root/tvm-v0.10.0/python/tvm/script/tir/prim_func.py", line 40, in prim_func
result = from_source(input_func)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 1368, in from_source
result = to_ast(input_func, TVMDiagnosticCtx(), parser)
File "/root/anaconda3/envs/tvm/lib/python3.8/site-packages/synr/compiler.py", line 719, in to_ast
transformed = transformer.do_transform(prog, diagnostic_ctx)
File "/root/anaconda3/envs/tvm/lib/python3.8/site-packages/synr/transformer.py", line 30, in do_transform
return self.transform(node)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 195, in transform
transform_res = visitor(node)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 363, in transform_Module
return self.transform(next(iter(node.funcs.values())))
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 195, in transform
transform_res = visitor(node)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 494, in transform_Function
body = self.parse_body(node.body)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 235, in parse_body
res = self.transform(stmt)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 195, in transform
transform_res = visitor(node)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 598, in transform_Assign
func.handle(node, self.context, arg_list, node.rhs.func_name.span)
File "/root/tvm-v0.10.0/python/tvm/script/tir/special_stmt.py", line 94, in handle
return call_with_error_reporting(
File "/root/tvm-v0.10.0/python/tvm/script/utils.py", line 105, in call_with_error_reporting
report_error(error_msg, node_span)
File "/root/tvm-v0.10.0/python/tvm/script/context_maintainer.py", line 246, in report_error
self._report_error(message, span)
File "/root/tvm-v0.10.0/python/tvm/script/parser.py", line 219, in report_error
self.error(message, span)
File "/root/anaconda3/envs/tvm/lib/python3.8/site-packages/synr/transformer.py", line 34, in error
self._diagnostic_context.emit("error", message, span)
File "/root/tvm-v0.10.0/python/tvm/script/diagnostics.py", line 52, in emit
self.diag_ctx.render() # Raise exception on the first error we hit. TODO remove
File "/root/tvm-v0.10.0/python/tvm/ir/diagnostics/__init__.py", line 119, in render
_ffi_api.DiagnosticContextRender(self)
File "/root/tvm-v0.10.0/python/tvm/_ffi/_ctypes/packed_func.py", line 237, in __call__
raise get_last_ffi_error()
tvm.error.DiagnosticError: Traceback (most recent call last):
2: TVMFuncCall
1: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<void (tvm::DiagnosticContext)>::AssignTypedLambda<tvm::{lambda(tvm::DiagnosticContext)#9}>(tvm::{lambda(tvm::DiagnosticContext)#9}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
0: tvm::DiagnosticContext::Render()
File "/root/tvm-v0.10.0/src/ir/diagnostic.cc", line 105
DiagnosticError: one or more error diagnostics were emitted, please check diagnostic render for output.
I don’t know what to do.