Hey @albanD, I’m trying to train 2 models in one training loop on the same data. I have a separate optimizer for each one. However, I get this error -
RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.

Aren’t 2 separate computation graphs created for the models ?