OneIsAll-w commented on pull request #6302:
URL: https://github.com/apache/tvm/pull/6302#issuecomment-799351852
Thanks a lot @leandron
but I still have some problems in compiling the resnet-50-v2.7.onnx model
using the command :
python -m tvm.driver.tvmc compile --target "llvm" --output
compiled_module.tar resnet50-v2-7.onnx
and I’m running into an error:
WARNING:root:Attribute momentum is ignored in relay.sym.batch_norm
WARNING:root:Attribute spatial is ignored in relay.sym.batch_norm
Traceback (most recent call last):
File "/home/tw/anaconda3/lib/python3.7/runpy.py", line 193, in
_run_module_as_main
"__main__", mod_spec)
File "/home/tw/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/tw/tvm/python/tvm/driver/tvmc/__main__.py", line 24, in
<module>
tvmc.main.main()
File "/home/tw/tvm/python/tvm/driver/tvmc/main.py", line 92, in main
sys.exit(_main(sys.argv[1:]))
File "/home/tw/tvm/python/tvm/driver/tvmc/main.py", line 85, in _main
return args.func(args)
File "/home/tw/tvm/python/tvm/driver/tvmc/compiler.py", line 114, in
drive_compile
args.desired_layout,
File "/home/tw/tvm/python/tvm/driver/tvmc/compiler.py", line 189, in
compile_model
tvm_target = tvm.target.Target(target)
File "/home/tw/tvm/python/tvm/target/target.py", line 92, in __init__
self.__init_handle_by_constructor__(_ffi_api.Target, tag_or_str_or_dict)
File "/home/tw/tvm/python/tvm/_ffi/_ctypes/object.py", line 131, in
__init_handle_by_constructor__
handle = __init_by_constructor__(fconstructor, args)
File "/home/tw/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 246, in
__init_handle_by_constructor__
values, tcodes, num_args = _make_tvm_args(args, temp_args)
File "/home/tw/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 163, in
_make_tvm_args
values[i].v_str = c_str(arg)
File "/home/tw/tvm/python/tvm/_ffi/base.py", line 88, in c_str
return ctypes.c_char_p(string.encode("utf-8"))
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 0-1:
surrogates not allowed
Sorry,I still cannot solve 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.
For queries about this service, please contact Infrastructure at:
[email protected]