In yaml files set diff_privacy to true and you will find that we get this exception:
Traceback (most recent call last):
File "main.py", line 220, in
epoch_interval=helper.params['aggr_epoch_interval'])
File "/home/anupam/anupam-data/FederatedLearning_DBA/helper.py", line 268, in average_shrink_models
update_perlayer.add(self.dp_noise(data, self.params['sigma']))
RuntimeError: expected device cuda:0 but got device cpu
In yaml files set diff_privacy to true and you will find that we get this exception:
Traceback (most recent call last): File "main.py", line 220, in
epoch_interval=helper.params['aggr_epoch_interval'])
File "/home/anupam/anupam-data/FederatedLearning_DBA/helper.py", line 268, in average_shrink_models
update_perlayer.add(self.dp_noise(data, self.params['sigma']))
RuntimeError: expected device cuda:0 but got device cpu
It is not able to access gpu.