Closed
Description
Using reorder() with what seems to be valid inputs makes the thread panic.
MWE:
let val = [1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12.];
let arr = Array::new(&val, Dim4::new(&[2, 3, 1, 2]));
let re_arr = reorder(&arr, Dim4::new(&[3, 2, 1, 2]));
Results in:
thread 'main' panicked at 'Error message: Size is incorrect
Last error: In function af_err af_reorder(af_array *, const af_array, const af::dim4 &)
In file src/api/c/reorder.cpp:84
Invalid dimension for argument 5
Expected: rdims[i] == allDims[rdims[i]]...
Metadata
Metadata
Assignees
Labels
No labels