Pytorch-CapsuleNet
Pytorch-CapsuleNet copied to clipboard
After a few Epochs, Loss Would Be NaN
trafficstars
Hello, I tried to test your code but after a few epochs (8 at most) the loss of the network turns out to be NaN. Has anyone else faced this issue while testing? How can I fix it
?
Is the problem solved?
I have the same problem
I have solved this problem by using the torch.norm instead of using sqrt in the squash function