alexandrosstergiou / SoftPool

[ICCV 2021] Code for approximated exponential maximum pooling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello, I find a bug when i use softpool2d.

KeqiWangSXuniversity opened this issue · comments

RuntimeError: input.is_contiguous() INTERNAL ASSERT FAILED at "/export/w/SoftPool/pytorch/CUDA/softpool_cuda.cpp":120, please report a bug to PyTorch. input must be a contiguous tensor

Hi @KeqiWangSXuniversity,

This question has been answered in previous issues #6 and #16.

It just means that the tensor that you're passing as an argument does not occupy a contiguous memory space. You can use .contiguous() alongside the function call, although most recent repo versions do internal checks.

Best,
Alex