MeanAct = lambda x: torch.clamp(torch.exp(x), 1e-5, 1e6)
Traceback (most recent call last):
torch.autograd.backward(self, gradient, retain_graph, create_graph)
RuntimeError: Function ‘ExpBackward’ returned nan values in its 0th output.
I used the function MeanAct as the last activation function and the backward, An error has occurred. as seen in above