Trying to backward through the graph a second time even when create graph and retain graph is true

I would recommend to update to the latest released version (1.7.0) as it would ship with bug fixes and new features.

You might have accidentally changes something in the code, as it shouldn’t break “by itself” :wink:

The inplace error is raised, since a tensor was overridden, which would be needed for the gradient calculation as described here.

That being said, the model behavior and convergence shouldn’t change by using the inplace or out-of-place relu.

1 Like