When I add nn.Tanh() to the last layer of a generative model, I got the error during the training RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation.
Is there a inplace=False option for nn.Tanh(). Thanks!
When I add nn.Tanh() to the last layer of a generative model, I got the error during the training
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation.Is there a
inplace=Falseoption for nn.Tanh(). Thanks!