Skip to content

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