how to limit cpu usage
Jasonxu0109 opened this issue · comments
Jasonxu commented
hi,
how to limit cpu and memory usage. Because i have set n_process as 1,but also produce high cpu usage. How to fix it? Thanks
LoneKnightz commented
You can try to use torch.set_num_threads() to set the number of CPU cores to use