I am trying same GluonCV inferencing examples. However I want to benchmark the results on a single core. I tried to play with ctx gave cpu(0) but still unable to limit the number of cores which are getting utilized.
I Tried the following it works but this will set for the complete script I want to set for just for inferencing import os os.environ["OMP_NUM_THREADS"] = 1 # export OMP_NUM_THREADS=1