leandron commented on pull request #6302:
URL: https://github.com/apache/tvm/pull/6302#issuecomment-799371426


   > 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
   > 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
   
   It seems it has something to do with the actual string you're sending on the 
command line. It is not strictly a bug in tvmc at this point. Can you please 
file an issue so that we can investigate that?


----------------------------------------------------------------
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]


Reply via email to