Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INDArray#fmod doesn't support long data type #10033

Open
ebeaufay opened this issue Sep 7, 2023 · 0 comments
Open

INDArray#fmod doesn't support long data type #10033

ebeaufay opened this issue Sep 7, 2023 · 0 comments

Comments

@ebeaufay
Copy link

ebeaufay commented Sep 7, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant