Skip to content

Conversation

@akashkw
Copy link
Contributor

@akashkw akashkw commented Feb 11, 2022

What does this PR do?

Deprecates agg_key_funcs, agg_default_func and update_agg_funcs from LightningLoggerBase.

Part of #11235
Part of #9145

Does your PR introduce any breaking changes? If yes, please list them.

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@akashkw akashkw added deprecation Includes a deprecation logger Related to the Loggers labels Feb 11, 2022
@edward-io
Copy link
Contributor

Code looks good. For the deprecation message, can we add more information on what alternatives users could use?

Co-authored-by: Danielle Pintz <[email protected]>
@daniellepintz
Copy link
Contributor

Can you also deprecate these in this PR, or were you planning to do this in another PR?
https://github.com/PyTorchLightning/pytorch-lightning/blob/79c4e5de60685dbc895641b0139ffc6180d069aa/pytorch_lightning/loggers/base.py#L102-L146

For these methods, you can put the dep. message in the docstring, but no need to send out a dep warning

@akashkw
Copy link
Contributor Author

akashkw commented Feb 11, 2022

Code looks good. For the deprecation message, can we add more information on what alternatives users could use?

@edward-io Since the aggregation logic is in the training loop now, I'm not sure how (or if) a user can provide custom aggregation functions. Do you know what alternatives there might be?

@akashkw
Copy link
Contributor Author

akashkw commented Feb 11, 2022

Can you also deprecate these in this PR, or were you planning to do this in another PR?

I think it makes sense to include in this PR #11832

@edward-io
Copy link
Contributor

Code looks good. For the deprecation message, can we add more information on what alternatives users could use?

@edward-io Since the aggregation logic is in the training loop now, I'm not sure how (or if) a user can provide custom aggregation functions. Do you know what alternatives there might be?

Mentioning this in the deprecation message would be sufficient IMO, but this is just a nit. :)

@daniellepintz
Copy link
Contributor

Since the aggregation logic is currently a no-op, I don't think it's necessary to mention any alternatives to users, since we are not really removing any functionality. I suppose we could mention the fact that the agg logic is a no-op, but not sure if we want to say that to users.

@mergify mergify bot added the ready PRs ready to be merged label Feb 16, 2022
@awaelchli awaelchli added this to the 1.6 milestone Feb 18, 2022
@awaelchli awaelchli enabled auto-merge (squash) February 18, 2022 02:19
auto-merge was automatically disabled February 18, 2022 20:49

Head branch was pushed to by a user without write access

@mergify mergify bot removed the has conflicts label Feb 18, 2022
@awaelchli awaelchli enabled auto-merge (squash) February 21, 2022 22:00
@awaelchli awaelchli merged commit e50653d into Lightning-AI:master Feb 21, 2022
@akashkw akashkw deleted the deprecate/agg-funcs branch February 22, 2022 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Includes a deprecation logger Related to the Loggers ready PRs ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants