Closed c0dearm closed 2 years ago
Okay, I know what happens.
The C API expects between 1 and 2 stride dimensions. But since the latest change, it is always fixed to 4: https://github.com/arrayfire/arrayfire-rust/pull/316
I will submit a Pull Request fixing the issue by setting the constant to 2 instead. According to the Arrayfire docs, only 2 dimensions are expected and the others are ignored.
Description
I am using the code from the
main
branch of this very same repo, because I needed this fix, which is not yet released: https://github.com/arrayfire/arrayfire-rust/pull/316Apparently, this fix is breaking completely the
convolve2_nn
function, or maybe I am doing something stupid.This is the code I am trying to run:
As you can see it is a convolution with stride 1, 0 padding and 1 dilation.
The following panic happens when trying to execute it:
Looks to me that somehow the stride dimensions are not being passed correctly to the C API.
System Information
ArrayFire v3.8.2 (CPU, 64-bit Linux, build 5752f2dc)
Checklist