Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to onnx is error #5

Open
dengfenglai321 opened this issue Aug 26, 2020 · 1 comment
Open

convert to onnx is error #5

dengfenglai321 opened this issue Aug 26, 2020 · 1 comment

Comments

@dengfenglai321
Copy link

hi
could you tell me how to convert to onnx.
I convert to onnx and it occur error as below:
File "/data2/multimedia_gpu03/anaconda3/lib/python3.6/site-packages/torch/functional.py", line 78, in split
return tensor.split(split_size_or_sections, dim)
File "/data2/multimedia_gpu03/anaconda3/lib/python3.6/site-packages/torch/tensor.py", line 308, in split
return super(Tensor, self).split_with_sizes(split_size, dim)
TypeError: split_with_sizes(): argument 'split_sizes' (position 1) must be tuple of ints, not Tensor

@NetEase-GameAI
Copy link
Owner

It's more like a PyTorch issue.
Try n, c, h, w = tensor.size(), then use these n, c, h, w ints during split.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants