You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/11/09 07:41:37 UTC
[GitHub] [incubator-tvm] cchung100m commented on issue #4271:
[Relay][Frontend][ONNX] operator support: DepthToSpace, SpaceToDepth
cchung100m commented on issue #4271: [Relay][Frontend][ONNX] operator support: DepthToSpace, SpaceToDepth
URL: https://github.com/apache/incubator-tvm/pull/4271#issuecomment-552075617
Hi @jwfromm
Thanks for the suggestion and I had changed the code of testing loop.
However, I encounter an issue when running `test_space_to_depth()` and I would appreciate that if you can help me to solve this issue.
many thanks,
```
ONNX FATAL: Don't know how to translate op SpaceToDepth
/Users/root/tvm/venv/lib/python3.7/site-packages/caffe2/python/onnx/backend.py:698: UserWarning: This version of onnx-caffe2 targets ONNX operator set version 9, but the model we are trying to import uses version 10. We will try to import it anyway, but if the model uses operators which had BC-breaking changes in the intervening versions, import will fail.
Traceback (most recent call last):
File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 1784, in <module>
test_space_to_depth()
File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 221, in test_space_to_depth
warnings.warn("This version of onnx-caffe2 targets ONNX operator set version {}, but the model we are trying to import uses version {}. We will try to import it anyway, but if the model uses operators which had BC-breaking changes in the intervening versions, import will fail.".format(cls._known_opset_version, imp.version))
verify_space_to_depth((1, 1, 4, 6), (1, 4, 2, 3), 2)
File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 212, in verify_space_to_depth
onnx_out = get_caffe2_output(model, x, 'int32')
File "/Users/root/tvm/tests/python/frontend/onnx/test_forward.py", line 82, in get_caffe2_output
prepared_backend = caffe2.python.onnx.backend.prepare(model)
File "/Users/root/tvm/venv/lib/python3.7/site-packages/caffe2/python/onnx/backend.py", line 712, in prepare
init_net, predict_net = cls._onnx_model_to_caffe2_net(model, device, opset_version, False)
File "/Users/root/tvm/venv/lib/python3.7/site-packages/caffe2/python/onnx/backend.py", line 910, in _onnx_model_to_caffe2_net
raise RuntimeError('ONNX conversion failed')
RuntimeError: ONNX conversion failed
Process finished with exit code 1
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services