-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/pytorch lightning #702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a great start. Maybe so far my main comment concerns the PL trainer; I feel (but might be wrong) that it would be nice to change our models' signatures, in order to put everything training related in fit()
. So for instance we could receive either the PL trainer kwargs (or the PL trainer itself?) as arguments to fit()
. In init we could also receive training-related arguments (or PL trainer directly), but those would only be used as default if nothing is specified to fit()
(as we are currently doing with epochs
).
def configure_optimizers(self): | ||
"""sets up optimizers""" | ||
|
||
# TODO: i think we can move this to to pl.Trainer(). and could probably be simplified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
<https://pytorch-lightning.readthedocs.io/en/stable/extensions/callbacks.html>`_ | ||
|
||
.. highlight:: python | ||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for the example!
Addresses #577.
Update of #697
pl_trainer_pararms
. This will set up a trainer with some darts specifics + the user's customization