Federated-Learning-PyTorch
Federated-Learning-PyTorch copied to clipboard
Loss: nan WARNING:root:NaN or Inf found in input tensor. WARNING:root:NaN or Inf found in input tensor.
Same issue. Anyone knows why?
I believe this issue is because NLLLoss is used but log_softmax is not used in some of the models. i.e. add F.log_softmax(out, dim=1) to CNNFashion_Mnist.
You're right. Thank you bro.