Skip to content

Conversation

@Borda
Copy link
Collaborator

@Borda Borda commented Oct 9, 2020

What does this PR do?

allow passing some arguments in env si they do not need to be defined again and again

Note: there is no other easy way as we pretty much need all arguments and then kind of return all 40 back
also, we cannot do the assignment with connector without rewriting all connectors as you need to pass self.my_atribute

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@Borda Borda added the feature Is an improvement or enhancement label Oct 9, 2020
@Borda Borda added this to the 1.0 milestone Oct 9, 2020
@Borda Borda marked this pull request as ready for review October 9, 2020 12:22
@Borda Borda requested a review from williamFalcon October 9, 2020 12:22
@mergify mergify bot requested a review from a team October 9, 2020 12:22
from pytorch_lightning import Trainer


def test_passing_env_variables(tmpdir):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@williamFalcon is this the priority order you expect?

Comment on lines +23 to +24
Decorator for :class:`~pytorch_lightning.trainer.trainer.Trainer` methods for which
input arguments should be moved automatically to the correct device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hehe, I think I know from where you copied this code :))
this docstring needs to be updated :)

@mergify mergify bot requested a review from a team October 9, 2020 21:19
@williamFalcon williamFalcon merged commit baf4f35 into master Oct 9, 2020
@Borda Borda deleted the feature/parse-env-vars branch October 13, 2020 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Is an improvement or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants