Skip to content
New issue

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

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

Already on GitHub? # to your account

训练时backward出错 #111

Open
WEN466 opened this issue Jun 16, 2023 · 0 comments
Open

训练时backward出错 #111

WEN466 opened this issue Jun 16, 2023 · 0 comments

Comments

@WEN466
Copy link

WEN466 commented Jun 16, 2023

您好,最近在训练ocean时,loss.backward处报错:
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\torch\autograd\function.py", line 204, in wrapper
outputs = fn(ctx, *args)
File "D:\work_datas\TracKit-master\tracking..\lib\models\dcn\deform_conv.py", line 85, in backward
deform_conv_cuda.deform_conv_backward_parameters_cuda(
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

deform_conv_cuda这个好像是编译的库,我自己修改不了。请问这个报错是为什么呢?可以帮忙看一下吗

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

No branches or pull requests

1 participant