-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Enable input pointer caching in XNNPACK integration. #42840
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
Conversation
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 54b8094 Pull Request resolved: #42840
💊 CI failures summary and remediationsAs of commit ad2a62e (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 160 times. |
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: ff6e65d Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 220d1b2 Pull Request resolved: #42840
| std::array<int64_t, 2> padding_; | ||
| std::array<int64_t, 2> stride_; | ||
| std::array<int64_t, 2> dilation_; | ||
| float* cached_input_ptr{nullptr}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const float*?
| padded_input_nhwc.size(Layout::Activation4D::height) || | ||
| context.input_width != | ||
| padded_input_nhwc.size(Layout::Activation4D::width) | ||
| ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personal opinion:
- Consider using parentheses liberally.
- I try to put rvalues (or more pedantically prvalues) on the left side of comparisons. That way
==or!=misspelled as=triggers a compiler error. Otherwise it is a warning, but it is typical in codebases where a 'warning as error' policy is not enforced to fall into the habit of ignoring warnings.
Please feel free to ignore. Both of these the pedantic side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly agree withe second one. I will make those changes. I weakly agree with first one :).
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 7676848 Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 7ae6437 Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 8d445ea Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: fc976c9 Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 377d914 Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: d4aa0e9 Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 8fac33f Pull Request resolved: #42840
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23044585](https://our.internmc.facebook.com/intern/diff/D23044585) [ghstack-poisoned]
Summary: By caching input/output pointers and input parameters we enable the use of caching allocator and check if we get the same input/output pointers. If so we skip setup steps. Test Plan: python test/test_xnnpack_integration.py Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: c834507 Pull Request resolved: #42840
|
This pull request has been merged in b003f2c. |
Stack from ghstack:
Summary:
By caching input/output pointers and input parameters we enable the use
of caching allocator and check if we get the same input/output pointers.
If so we skip setup steps.
Test Plan:
python test/test_xnnpack_integration.py
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D23044585