We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Memory cannot be released correctly when calling get and set methods operating system: win10 djl version: 0.20.0 jdk: 1.8
NDManager manager = NDManager.newBaseManager(Device.cpu()); int[] ints = new int[1000 * 1000 * 3]; Arrays.fill(ints, 1); while (true) { NDManager sub = manager.newSubManager(); NDArray array = sub.create(ints, new Shape(1000, 1000, 3)); NDArray eq = array.eq(1); array.set(new NDIndex(":"), 1); // no memory leaks array.get(new NDIndex(":")); // no memory leaks array.set(eq, 1); // memory leak array.get(eq); // memory leak sub.close(); // the allocated memory cannot be fully released, and each cycle will occupy some memory that cannot be released }
When the parameter is NDIndex, it is normal When the parameter is NDArray, the memory usage will continue to rise
The text was updated successfully, but these errors were encountered:
KexinFeng
Successfully merging a pull request may close this issue.
Description
Memory cannot be released correctly when calling get and set methods
operating system: win10
djl version: 0.20.0
jdk: 1.8
Reproduce
When the parameter is NDIndex, it is normal
When the parameter is NDArray, the memory usage will continue to rise
The text was updated successfully, but these errors were encountered: