Hello
I have just installed TVM and was going through the tutorials.
I ran tvmc compile --target "llvm" --output resnet50-v2-7-tvm.tar resnet50-v2-7.onnx
, but it crashed with the following:
RuntimeWarning: Unexpected end-group tag: Not all data was converted
decoded = cast(Optional[int], proto.ParseFromString(s))
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/main.py”, line 24, in
tvmc.main.main()
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/main.py”, line 105, in main
sys.exit(_main(sys.argv[1:]))
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/main.py”, line 93, in _main
return args.func(args)
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/compiler.py”, line 155, in drive_compile
tvmc_model = frontends.load_model(args.FILE, args.model_format, args.input_shapes)
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/frontends.py”, line 396, in load_model
mod, params = frontend.load(path, shape_dict, **kwargs)
File “/home/dtpopovici/Documents/Repos/tvm/python/tvm/driver/tvmc/frontends.py”, line 164, in load
model = onnx.load(path)
File “/home/dtpopovici/.local/lib/python3.6/site-packages/onnx/init.py”, line 121, in load_model
model = load_model_from_string(s, format=format)
File “/home/dtpopovici/.local/lib/python3.6/site-packages/onnx/init.py”, line 158, in load_model_from_string
return _deserialize(s, ModelProto())
File “/home/dtpopovici/.local/lib/python3.6/site-packages/onnx/init.py”, line 103, in _deserialize
decoded, len(s)))
google.protobuf.message.DecodeError: Protobuf decoding consumed too few bytes: 84 out of 173225
I installed TVM and its dependencies on an Ubuntu 20.04 system.
Does the above problem raise any bells? Highly appreciate an answer.
Best, Doru