I want to get the cpu usage during testing for my ML model (during a call to predict). Here is currently what I am doing:
predict
start = p.cpu_percent()