how to set threads when use laaonet?
zhq90 opened this issue · comments
I noticed that the lassonet will use half of threads to run. I wonder to know how to use more threads when running lassonet?
Do you use the CPU or GPU?
CPU
What method did you use? a -CV one?
LassoNetClassifierCV
As usual, having a fully reproducible code snippet would probably be helpful.
Well, there are multiple answers:
- you can control the number of thread used by pytorch: https://jdhao.github.io/2020/07/06/pytorch_set_num_threads/
- you could parallelize the CV loop here:
lassonet/lassonet/interfaces.py
Line 663 in e12ca78