(self)
| 83 | net_g_ema_params[k].data.mul_(decay).add_(net_g_params[k].data, alpha=1 - decay) |
| 84 | |
| 85 | def get_current_log(self): |
| 86 | return self.log_dict |
| 87 | |
| 88 | def model_to_device(self, net): |
| 89 | """Model to device. It also warps models with DistributedDataParallel |