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
[PyTorch] Change from unique_ptr to optional for RecordFunction state #68397
Conversation
Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit b236dc0 (more details on the Dr. CI page): 💚 💚 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. |
Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) ghstack-source-id: 143449410 Pull Request resolved: #68397
…ction state" Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) [ghstack-poisoned]
…ction state" Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) [ghstack-poisoned]
…ction state" Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) [ghstack-poisoned]
…ction state" Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation. Differential Revision: [D32448365](https://our.internmc.facebook.com/intern/diff/D32448365/) [ghstack-poisoned]
This pull request has been merged in 1d04163. |
Stack from ghstack:
Now that hot paths can avoid instantiating RecordFunction by using shouldRunRecordFunction, we can improve efficiency for profiling cases by avoiding a large heap allocation.
Differential Revision: D32448365