Skip to content
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

Support sum() forward and backward for NJT #128031

Open
wants to merge 10 commits into
base: gh/jbschlosser/147/base
Choose a base branch
from

Conversation

jbschlosser
Copy link
Contributor

@jbschlosser jbschlosser commented Jun 5, 2024

Copy link

pytorch-bot bot commented Jun 5, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/128031

Note: Links to docs will display an error until the docs builds have been completed.

❌ 10 New Failures, 4 Unrelated Failures

As of commit 1b29546 with merge base 31d5753 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@soulitzer
Copy link
Contributor

I don't remember what the conclusion on this was when we discussed lol - but it seems like it is tricky to land something with suboptimal performance when there is already a simple way around this: extract out buffer and then sum.

@albanD albanD removed their request for review June 6, 2024 15:20
@jbschlosser
Copy link
Contributor Author

it seems like it is tricky to land something with suboptimal performance when there is already a simple way around this: extract out buffer and then sum.

yeah, I don't disagree, but it seems like people are very quick to run into "sum() isn't defined for NJT" when they first start using it. It's a noticeable gap and feels really silly not to have it.

Maybe we can do some hackery to make sum() composite implicit for NJT and get a good backwards automatically through _nested_get_values() + values.sum()?

@soulitzer
Copy link
Contributor

Maybe we can do some hackery to make sum() composite implicit for NJT and get a good backwards automatically through _nested_get_values() + values.sum()?

Ooh good idea, this is just torch function right?

jbschlosser added a commit that referenced this pull request Jun 17, 2024
ghstack-source-id: f774295a6f344b5244be44d1f5b77492a146e8f5
Pull Request resolved: #128031
jbschlosser added a commit that referenced this pull request Jun 18, 2024
ghstack-source-id: 4b8c7269bf3a955baed65cf677c816987a721d97
Pull Request resolved: #128031
jbschlosser added a commit that referenced this pull request Jun 20, 2024
ghstack-source-id: e12eb90c48ecf2eb9a6bdeca215d214d4d04fbba
Pull Request resolved: #128031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants