INDArray#fmod doesn't support long data type
ebeaufay opened this issue · 0 comments
ebeaufay commented
Issue Description
I noticed INDArray#fmod doesn't work as expected on Long data type arrays
long[] l = new long[]{805459861L*15L};
INDArray arrayLong = Nd4j.createFromArray(l);
long mod = l[0] % 4096;
System.out.println(mod); // prints : 443
arrayLong.fmodi(4096L);
System.out.println(arrayLong.getLong()); // prints : 0
Version Information
Please indicate relevant versions, including, if relevant:
- 1.0.0-M2.1
- windows
- CUDA 11.6