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

Offset of buffer can not be >= Integer.MAX_VALUE #23

Open
mactsouk opened this issue Jul 9, 2021 · 1 comment
Open

Offset of buffer can not be >= Integer.MAX_VALUE #23

mactsouk opened this issue Jul 9, 2021 · 1 comment

Comments

@mactsouk
Copy link

mactsouk commented Jul 9, 2021

Hello.

Working with a TimeSeries of size 50.000, I got the next error message (Exception):

Exception in thread "main" java.lang.IllegalArgumentException: Offset of buffer can not be >= Integer.MAX_VALUE
at org.nd4j.linalg.api.ndarray.BaseNDArray.offset(BaseNDArray.java:5216)
at org.nd4j.linalg.api.ndarray.BaseNDArray.subArray(BaseNDArray.java:2558)
at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:5013)
at io.github.ensozos.utils.CustomOperations.centeredMovingMinimum(CustomOperations.java:67)
at io.github.ensozos.core.MPdistance.getMPdistance(MPdistance.java:59)
at Main.main(Main.java:138)

Is it a fault (restriction) of nd4j?
Is it something else?

Thanks for your time!

@ensozos
Copy link
Owner

ensozos commented Jul 14, 2021

Yes, I think it's an issue with nd4j.

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

2 participants