Skip to content

Conversation

@mikaylagawarecki
Copy link
Contributor

@mikaylagawarecki mikaylagawarecki commented Aug 1, 2022

Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.

Next steps will be to add support for other features for forward sum mentioned on #82387 and likewise update the backward

Stack from ghstack (oldest at bottom):

mikaylagawarecki added a commit that referenced this pull request Aug 1, 2022
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 1, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 7ef27d3 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

mikaylagawarecki added a commit that referenced this pull request Aug 2, 2022
@albanD
Copy link
Collaborator

albanD commented Aug 2, 2022

This was already discussed in https://docs.google.com/document/d/1dVMH33IK2C7n3Ee8LBtfWw2i8MzxkAIkvuUo_hZY63k/edit#
Any reason for not going with that is proposed there?

self.assertEqual(nt_sum, torch.nested_tensor(ub2_sum))
# test backward
if requires_grad:
# generate gradient tensor that has the same size as the output
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to have torch.randn_like(nt_sum) :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could I hold off on this until Driss implements empty_like in #83140, I think that the implementation for randn_like might be similar

Copy link
Collaborator

Choose a reason for hiding this comment

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

Of course!

btw driss is using nt = self.random_nt(device, dtype, 4, (4, 4)) in a few of his tests. Maybe that is a good replacement?

In any case, this is a small detail that can be done later.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ho you're already using that now :D

Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.





[ghstack-poisoned]
Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.





[ghstack-poisoned]
Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.





[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Aug 12, 2022
@mikaylagawarecki mikaylagawarecki marked this pull request as ready for review August 15, 2022 15:29
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

SGTM
I didn't look into details into the kernel though (but I guess it's fine as it's going to be removed soon).

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here and land check progress here.
The merge job was triggered with the land checks (-l) flag. If you did not specify this flag yourself, you are likely enrolled in the land checks rollout. This means that your change will be merged once all checks on your PR and the land checks have passed (ETA 4 Hours). If you need to coordinate lands between different changes and cannot risk a land race, please add the ciflow/trunk label to your PR and wait for signal to complete, and then land your changes in proper order. Having trunk, pull, and Lint pre-run on a PR will bypass land checks and the ETA should be immediate. If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@pytorchmergebot
Copy link
Collaborator

Merge failed due to Failed to merge; some land checks failed: pull, pull / linux-bionic-py3.7-clang9 / test (default, 2, 2, linux.2xlarge), pull / linux-bionic-py3.7-clang9 / test (crossref, 2, 2, linux.2xlarge)
Raised by https://github.com/pytorch/pytorch/actions/runs/2870295706 If you believe this is an error, you can use the old behavior with @pytorchbot merge -g (optionally with the ciflow/trunk to get land checks) or use @pytorchbot merge -f "some reason here". For more information, see the bot wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here and land check progress here.
The merge job was triggered with the land checks (-l) flag. If you did not specify this flag yourself, you are likely enrolled in the land checks rollout. This means that your change will be merged once all checks on your PR and the land checks have passed (ETA 4 Hours). If you need to coordinate lands between different changes and cannot risk a land race, please add the ciflow/trunk label to your PR and wait for signal to complete, and then land your changes in proper order. Having trunk, pull, and Lint pre-run on a PR will bypass land checks and the ETA should be immediate. If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@pytorchmergebot
Copy link
Collaborator

Merge failed
Reason: Failed to merge; some land checks failed: pull, pull / linux-bionic-py3.7-clang9 / test (default, 2, 2, linux.2xlarge), pull / linux-bionic-py3.7-clang9 / test (crossref, 2, 2, linux.2xlarge)
Raised by https://github.com/pytorch/pytorch/actions/runs/2870978847 If you believe this is an error, you can use the old behavior with @pytorchbot merge -g (optionally with the ciflow/trunk to get land checks) or use @pytorchbot merge -f "some reason here". For more information, see the bot wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot rebase -s

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.

Next steps will be to add support for other features for forward sum mentioned on #82387 and likewise update the backward





[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/mikaylagawarecki/75/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/82625)

pytorchmergebot pushed a commit that referenced this pull request Aug 16, 2022
@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here and land check progress here.
The merge job was triggered with the land checks (-l) flag. If you did not specify this flag yourself, you are likely enrolled in the land checks rollout. This means that your change will be merged once all checks on your PR and the land checks have passed (ETA 4 Hours). If you need to coordinate lands between different changes and cannot risk a land race, please add the ciflow/trunk label to your PR and wait for signal to complete, and then land your changes in proper order. Having trunk, pull, and Lint pre-run on a PR will bypass land checks and the ETA should be immediate. If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

pytorchmergebot pushed a commit that referenced this pull request Aug 16, 2022
Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.

Next steps will be to add support for other features for forward sum mentioned on #82387 and likewise update the backward

Pull Request resolved: #82625
Approved by: https://github.com/albanD
@pytorchmergebot
Copy link
Collaborator

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here and land check progress here.
The merge job was triggered with the land checks (-l) flag. If you did not specify this flag yourself, you are likely enrolled in the land checks rollout. This means that your change will be merged once all checks on your PR and the land checks have passed (ETA 4 Hours). If you need to coordinate lands between different changes and cannot risk a land race, please add the ciflow/trunk label to your PR and wait for signal to complete, and then land your changes in proper order. Having trunk, pull, and Lint pre-run on a PR will bypass land checks and the ETA should be immediate. If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

pytorchmergebot pushed a commit that referenced this pull request Aug 17, 2022
Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.

Next steps will be to add support for other features for forward sum mentioned on #82387 and likewise update the backward

Pull Request resolved: #82625
Approved by: https://github.com/albanD
@mikaylagawarecki mikaylagawarecki added release notes: nested tensor Changes that have a direct impact on nested tensors topic: improvements topic category labels Aug 17, 2022
facebook-github-bot pushed a commit that referenced this pull request Aug 19, 2022
…82625)

Summary:
Per offline discussion, this will be updated to use expand once expand semantics for nested tensor have been fleshed out.

Next steps will be to add support for other features for forward sum mentioned on #82387 and likewise update the backward

Pull Request resolved: #82625
Approved by: https://github.com/albanD

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/bd0ad7a84f125435f9e0685f86b1ca2efd2bd43b

Reviewed By: atalman

Differential Revision: D38830753

Pulled By: mikaylagawarecki

fbshipit-source-id: 6e4db6ab37714e2fa2637d7213a7cbe6dfadab06
@facebook-github-bot facebook-github-bot deleted the gh/mikaylagawarecki/75/head branch August 21, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged release notes: nested tensor Changes that have a direct impact on nested tensors topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants