Skip to content
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

OP primitive cache: use memory as signature for MKLDNN storage type #11

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

jinhuang415
Copy link

Description

For Convolution/FC OPs, we can use NDArray dims/shape to do primitive cache signature, for some other OPs, we need to consider memory layout also, to unify the interface, we would like all OPs to pass NDArray type to AddSign and AddSign function will convert NDArray to memory type and do signature. With this change, convolution/FC OPs will also use memory to do signature, from testing, we almost didn't see any increase for convolution primitive cache count (using NDArray vs using memory to do sign) so it probably should be ok to use memory to sign convolution also.

Checklist

Essentials

  • Passed code style checking (make lint)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • For user-facing API changes, API doc string has been updated. For new C++ functions in header files, their functionalities and arguments are well-documented.
  • To my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@zheng-da
Copy link
Owner

@TaoLv the case you mentioned doesn't happen. IsMKLDNN returns true, the NDArray must have mkldnn memory attached to it.

@zheng-da zheng-da merged commit 1cba97f into zheng-da:refactor Jan 10, 2018
zheng-da added a commit that referenced this pull request Jun 1, 2018
* add functions for cutting edges.

* construct subgraphs.

* generalize graph partition.

* restructure the code.

* create SubgraphOpState.

* register subgraph property.

* rename.

* address comments.

* update select API.

* rename.

* set subgraph property.

* fix bugs.

* fix bugs.
zheng-da added a commit that referenced this pull request Jun 7, 2018
* add functions for cutting edges.

* construct subgraphs.

* generalize graph partition.

* restructure the code.

* create SubgraphOpState.

* register subgraph property.

* rename.

* address comments.

* update select API.

* rename.

* set subgraph property.

* fix bugs.

* fix bugs.
zheng-da added a commit that referenced this pull request Jun 13, 2018
* add functions for cutting edges.

* construct subgraphs.

* generalize graph partition.

* restructure the code.

* create SubgraphOpState.

* register subgraph property.

* rename.

* address comments.

* update select API.

* rename.

* set subgraph property.

* fix bugs.

* fix bugs.
TaoLv pushed a commit to TaoLv/incubator-mxnet that referenced this pull request Jun 16, 2018
* add functions for cutting edges.

* construct subgraphs.

* generalize graph partition.

* restructure the code.

* create SubgraphOpState.

* register subgraph property.

* rename.

* address comments.

* update select API.

* rename.

* set subgraph property.

* fix bugs.

* fix bugs.
TaoLv pushed a commit to TaoLv/incubator-mxnet that referenced this pull request Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants