Skip to content

Conversation

@AshkanAliabadi
Copy link
Contributor

@AshkanAliabadi AshkanAliabadi commented Jul 24, 2020

Stack from ghstack:

Differential Revision: D22715307

AshkanAliabadi pushed a commit that referenced this pull request Jul 24, 2020

auto bias_contig = bias_vec.contiguous();
auto bias_contig = at::native::xnnpack::internal::allocate_padded_contiguous_if_needed(
bias_, bias_.suggest_memory_format());
Copy link
Contributor Author

@AshkanAliabadi AshkanAliabadi Jul 24, 2020

Choose a reason for hiding this comment

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

This is the least intrusive fix I could think of that solves this issue and checks the performance boxes (no reallocation on mobile), but is ugly in that it's adding a header dependency on XNNPACK integration. Ideally we would want that file to be in a common location. Do you want me to address that here or in a separate commit (or hopefully someone else can refactor this since I need to spend some time on GPU.)

Copy link
Contributor Author

@AshkanAliabadi AshkanAliabadi Jul 24, 2020

Choose a reason for hiding this comment

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

Also technically this causes an extra allocation on non-mobile builds if the number of output channels is already a multiple of 8 in which case a reallocation is not needed.

AshkanAliabadi pushed a commit that referenced this pull request Aug 19, 2020
@dr-ci
Copy link

dr-ci bot commented Aug 19, 2020

💊 CI failures summary and remediations

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


None of the CI failures appear to be your fault 💚



🚧 1 ongoing upstream failure:

These were probably caused by upstream breakages that are not fixed yet:


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 1 time.

@facebook-github-bot
Copy link
Contributor

@AshkanAliabadi merged this pull request in 6a09df9.

@facebook-github-bot facebook-github-bot deleted the gh/AshkanAliabadi/29/head branch August 24, 2020 14:15
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.

4 participants