-
Notifications
You must be signed in to change notification settings - Fork 16
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
apply_func.apply_to_collection
force updating its return type.
#196
Comments
Hi, I am open to working on it. Is there any timeframe for this? |
@shubhodeepMitra See my comment here about what I suggest: #199 (comment) |
Hi @carmocca |
I made the change that caused this issue to try to have If your proposal introduces a graphbreak, then it would defeat the point of the fast vs slow paths. I haven't tested if it would. Since avoiding a graphbreak is not that important to me anymore I suggest that we revert to the old implementation before #160. This should be the simpler and safer option. However, if you open a PR with your suggestion including a test for the namedtuple case and a script showing that |
…apply_to_collection`.
🐛 Bug
When I'm using torchmetrics, I'm implementing a custom metrics for classification with a nametuple return. before lightning_utilities 0.9.0 it works because the returned nametuple instance was not changed by the
apply_func.apply_to_collection
. Since this behavior was updated after 0.10.0, I'd like to propose that ifapply_to_collection
can be updated and still keep the same type.To Reproduce
Steps to reproduce the behavior...
Code sample
Expected behavior
Additional context
Environment details
Proposal
The text was updated successfully, but these errors were encountered: