f-dangel / unfoldNd

(N=1,2,3)-dimensional unfold (im2col) and fold (col2im) in PyTorch
MIT License
82 stars 6 forks source link

[BUG] Failure for inputs of certain data type #20

Closed f-dangel closed 3 years ago

f-dangel commented 3 years ago

Passing a torch.float64 input to unfoldNd.unfoldNd raises an exception in the underlying convolution, as the one-hot weight is always created in the default data type.

Reproduced in 086ed13.