linven0721 commented on issue #16751: Run Java example, GPU, Memory leak
URL: 
https://github.com/apache/incubator-mxnet/issues/16751#issuecomment-552701551
 
 
   @lanking520 The code is the java example[PredictorExample.java]. I just 
added a for loop.
   `NDArray img=...;
   Predictor predictor=...;
   for(;;){
        float[] result = predictor.predict(new float[][] {img.toArray});
   }`
   There is no memory leak in this code on the CPU, and there will be problems 
only when it runs on the GPU.
   Do you still need me to provide specific running code?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to