zhuangdizhu / FedGen

Code and data accompanying the FedGen paper
233 stars 68 forks source link

Cannot ultilize GPU for FedGen #17

Open hanjialiang opened 2 years ago

hanjialiang commented 2 years ago

I run the example experiment for FedGen on Mnist in README.md with the option "--device cuda" but find out there is no process deployed on GPU. I further explore your code and it seems that you have not handled "args.device" in all scripts. Besides, I add "os.environ["CUDA_VISIBLE_DEVICES"] = '0'" in main.py but the model is still deployed only on CPU. I wonder how I can utilize GPU for FedGen. I really appreciate your help!