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

using TORCH_CHECK instead of AT_CHECK and adding .contiguous(); #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elmahyai
Copy link

@elmahyai elmahyai commented Mar 12, 2021

AT_CHECK is deprecated in future torch versions adding this line solves the problem.

The second problem I encounters was that I get this error in the backward pass of the deform_conv_cuda function.

view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Call .contiguous() before .view().

The solution was to add .contiguous() and the error is gone.

@elmahyai elmahyai changed the title using TORCH_CHECK instead of AT_CHECK using TORCH_CHECK instead of AT_CHECK and adding .contiguous(); Mar 13, 2021
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

Successfully merging this pull request may close these issues.

1 participant