Skip to content

Conversation

[ghstack-poisoned]
This was referenced Jan 20, 2025
Copy link

pytorch-bot bot commented Jan 20, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 206caf7 with merge base 44b69b8 (image):
💚 Looks good so far! There are no failures yet. 💚

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

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@guilhermeleobas
Copy link
Collaborator Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Jan 21, 2025
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/guilhermeleobas/91/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/145223)

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot had a problem deploying to upload-benchmark-results January 21, 2025 21:14 Failure
@pytorch-bot pytorch-bot bot had a problem deploying to upload-benchmark-results January 21, 2025 21:14 Failure
[ghstack-poisoned]
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 22, 2025 11:47 Inactive
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Comment on lines 463 to 464
@unittest.expectedFailure
def test_reconstruct_generator_mutate_tensor(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you file an issue for this once this PR goes in so that we can track it as a known issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here #146628

Comment on lines +176 to +179
def whoo(t):
yield t.sin()
yield t.cos()
yield t.tan()
Copy link
Contributor

Choose a reason for hiding this comment

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

@StrongerXi @anijain2305 do we have any side effects that aren't variable mutation? We're trying to test a generator with side effects

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe register_hook for input tensor?

Simpler proposal -- what about passing in some pre-existing dict or dummy object and update that (e.g., before the first yield)?.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, good thought. So, maybe it isn't safe to support any kind of variable mutation when reconstructing a generator.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

lgtm but have some comments, please read

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Feb 8, 2025
Raymo111 pushed a commit that referenced this pull request Feb 20, 2025
Raymo111 pushed a commit that referenced this pull request Feb 20, 2025
@github-actions github-actions bot deleted the gh/guilhermeleobas/91/head branch March 11, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants