KEMBAR78
Expliclty avoid recording when should_record_events is false in record_shapeenv_event by laithsakka · Pull Request #138965 · pytorch/pytorch · GitHub
Skip to content

Conversation

@laithsakka
Copy link
Contributor

@laithsakka laithsakka commented Oct 26, 2024

Stack from ghstack (oldest at bottom):

Looking at the function record_shapeenv_event its hard to tell that it does not always run
but we do disable it by setting top level is_recording to True self.should_record_events is false
this makes it more explicit to avoid confusion and overloading is_recording.

alternativley we can rename is_recording to do_no_record.
cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 26, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 41f8a07 with merge base 8aedc64 (image):
💚 Looks good so far! There are no failures yet. 💚

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

laithsakka added a commit that referenced this pull request Oct 26, 2024
@pytorch-bot pytorch-bot bot added ciflow/inductor release notes: fx release notes category labels Oct 26, 2024
@laithsakka laithsakka changed the title expliclty avoid recording when disabled in record_shapeenv_event Expliclty avoid recording when disabled in record_shapeenv_event Oct 26, 2024
@laithsakka laithsakka changed the title Expliclty avoid recording when disabled in record_shapeenv_event Expliclty avoid recording when should_record_events is false in record_shapeenv_event Oct 26, 2024
@laithsakka
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 28, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-actions github-actions bot deleted the gh/laithsakka/91/head branch November 28, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request fx Merged release notes: fx release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants