ami-iit / bipedal-locomotion-framework

Suite of libraries for achieving bipedal locomotion on humanoid robots
https://ami-iit.github.io/bipedal-locomotion-framework/
BSD 3-Clause "New" or "Revised" License
132 stars 36 forks source link

Add the possibility to set the number of threads used by onnxruntime in MANN #836

Closed GiulioRomualdi closed 3 months ago

GiulioRomualdi commented 3 months ago

With @LoreMoretti and @traversaro, we observed that during inference, onnxruntime spawns n threads, where n is the number of cores, as explained in https://onnxruntime.ai/docs/performance/tune-performance/threading.html. This results in a slowdown for other threads and processes. This PR allows the user to set the number of threads used for the inference