Skip to content

Conversation

@kimishpatel
Copy link
Contributor

@kimishpatel kimishpatel commented Aug 11, 2020

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

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]
kimishpatel added a commit that referenced this pull request Aug 11, 2020
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
@dr-ci
Copy link

dr-ci bot commented Aug 11, 2020

💊 CI failures summary and remediations

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


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

Extra GitHub checks: 1 failed


ci.pytorch.org: 1 failed


This 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.

See how this bot performed.

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]
kimishpatel added a commit that referenced this pull request Aug 11, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 11, 2020
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};
Copy link
Contributor

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)
) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Personal opinion:

  1. Consider using parentheses liberally.
  2. 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.

Copy link
Contributor Author

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]
kimishpatel added a commit that referenced this pull request Aug 12, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 13, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 18, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 18, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 19, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 19, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 19, 2020
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]
kimishpatel added a commit that referenced this pull request Aug 21, 2020
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
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b003f2c.

@facebook-github-bot facebook-github-bot deleted the gh/kimishpatel/39/head branch August 26, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants