OpenVino EP high memory usage #23970
Unanswered
simonesneault
asked this question in
EP Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
We are trying to use openvino EP here to perform inferences on a unet3D model trained with pytorch, then converted to onnx
The inference time becomes much better when we use the openvino backend, but the memory usage becomes huge
Here is a comparison of the timing and memory consumption we have between for a tensor of size 1 1 240 240 240
onnx 1.21 CPU time : 2.7s
onnx 1.21 CPU memory : 371 MB
onnx 1.21 OpenVino 2024.6 EP time : 0.7s
onnx 1.21 OpenVIno 2024.6 EP memory : 1942 MB
libtorch 2.2.2 time : 2.1s
libtorch 2.2.2 memory : 1280 MB
Do you know how to reduce the memory usage at runtime ? We've noticed that the line
l_session_options.DisableCpuMemArena();
helped a lot for the classical CPU backend but it has no effect for openvino ...Thanks
Beta Was this translation helpful? Give feedback.
All reactions