System information
- OS version/distro: Windows
- .NET Version (eg., dotnet --info): .NET framework 4
Issue
- What did you do?
Load model saved by ML.NET, the base model is in ONNX format
- What happened?
Everytime I load the model, a new onnx model file is created in %temp% folder and it is not deleted after releasing model object or after exiting the application. File path: %temp%\7bf1a39c-b65c-4874-927b-2bacbbf57b15\model.onnx
I tried to delete the file when the model was predicting but there is no error or exception and the result is the same.
- What did you expect?
This file should be deleted or better not be created since it exposes our model to the user consumes too much user's memory.
Source code / logs
Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.
System information
Issue
Load model saved by ML.NET, the base model is in ONNX format
Everytime I load the model, a new onnx model file is created in %temp% folder and it is not deleted after releasing model object or after exiting the application. File path: %temp%\7bf1a39c-b65c-4874-927b-2bacbbf57b15\model.onnx
I tried to delete the file when the model was predicting but there is no error or exception and the result is the same.
This file should be deleted or better not be created since it exposes our model to the user consumes too much user's memory.
Source code / logs
Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.