Adam Pocock
Adam Pocock
Is the Java heap expanding and triggering an OOM, or is the native heap expanding? How are the Java GC parameters set?
Ok, I'll see if I can replicate it and run it down.
I ported your code over to Java so I could test it and I couldn't see any leak when running it. My memory usage was pretty solid at 2.7GB on...
What does your code look like?
What GC algorithm are you using in the production system? ZGC causes the RSS to be triple counted on some platforms which can interact poorly with JavaCPP's memory tracking.
How does your `getInputs` call work? Is it using anything in eager mode?
Unfortuantely I don't understand much about how the oneDNN implementation uses memory internally, but you might want to look at tensorflow/tensorflow to see if other people have hit the same...
Adding this line should have generated more code which needs to be checked in, and we've had issues with the experimental C API in the past. Does this build correctly?
Please move that stub out into a separate file, we don't want to mix up the different stubs.
And create a separate header file rather than putting the function definition in an existing unrelated file.