onnx-mlir icon indicating copy to clipboard operation
onnx-mlir copied to clipboard

Fix JNI wrapper memory leak

Open gongsu832 opened this issue 1 year ago • 10 comments

Fix JNI wrapper memory leak due to NewDirectByteBuffer not subjecting to Java GC. Use the Cleaner API requiring Java 9+ to avoid copying tensor data

gongsu832 avatar Apr 19 '23 03:04 gongsu832