hqucms / weaver-core

Streamlined neural network training.
MIT License
44 stars 54 forks source link

fix cpu/gpu switch #16

Closed sam-cal closed 5 months ago

sam-cal commented 5 months ago

args.gpus="0" was considered as a string and not as an integer, resulting to the use of GPU

hqucms commented 5 months ago

Hi @sam-cal -- the convention here is --gpus [GPU IDs], so 0 means to use the GPU device 0. To use CPUs, just set an empty string, i.e., --gpus ''.