You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And in my LightningModule, I have set the self.model = GANs
The problem is once I run the trainer.fit(self, self.data). Lightning won't find any parameters that require a gradient and the error is raised. RuntimeError: DistributedDataParallel is not needed when a module doesn't have any parameter that requires a gradient.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to run trainer.fit() on multiple models?.
For example, I have dict of the models
GANs = {'generator' : gen(), 'discriminator' : dis()}
And in my LightningModule, I have set the
self.model = GANs
The problem is once I run the trainer.fit(self, self.data). Lightning won't find any parameters that require a gradient and the error is raised.
RuntimeError: DistributedDataParallel is not needed when a module doesn't have any parameter that requires a gradient.
Beta Was this translation helpful? Give feedback.
All reactions