Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.4.x] mkldnn s8 conv API change for 1.4.x branch #13905

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

ZhennanQin
Copy link
Contributor

@ZhennanQin ZhennanQin commented Jan 16, 2019

Description

This is extracted from #13697, to make API change for 1.4.x branch.
@KellenSunderland @pengzhao-intel

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@ZhennanQin ZhennanQin changed the title API change for 1.4.x branch mkldnn s8 conv API change for 1.4.x branch Jan 16, 2019
@TaoLv TaoLv changed the title mkldnn s8 conv API change for 1.4.x branch [v1.4.x] mkldnn s8 conv API change for 1.4.x branch Jan 16, 2019
@stu1130
Copy link
Contributor

stu1130 commented Jan 16, 2019

@mxnet-label-bot add [pr-awaiting-review]
Thanks for your contribution @ZhennanQin

@marcoabreu marcoabreu added the pr-awaiting-review PR is waiting for code review label Jan 16, 2019
@pengzhao-intel
Copy link
Contributor

@KellenSunderland could you help take a review this PR? The deadline of 1.4 is very near :(

@pengzhao-intel
Copy link
Contributor

pengzhao-intel commented Jan 20, 2019

@TaoLv @xinyu-intel please help take a review too :)

@srochel
Copy link
Contributor

srochel commented Jan 20, 2019

Please review and merge asap, this is the last PR blocking 1.4.0.rc1. Please keep an eye on builds and CI.

@szha
Copy link
Member

szha commented Jan 20, 2019

@zheng-da @reminisce @eric-haibin-lin ping for review.
@srochel this change concerns what API to expose in 1.4.0 so please allow some time to get it right.

@KellenSunderland
Copy link
Contributor

Having a more detailed look now ...

Copy link
Contributor

@KellenSunderland KellenSunderland left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@pengzhao-intel pengzhao-intel left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@TaoLv TaoLv left a comment

Choose a reason for hiding this comment

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

The changes look good to me. Merging now to catch the code freezing of 1.4.0rc1. Please make sure the same changes will also happen on master branch, so we would not have API discrepancy between minor versions.

@TaoLv TaoLv merged commit 45a1554 into apache:v1.4.x Jan 21, 2019
Copy link
Member

@szha szha left a comment

Choose a reason for hiding this comment

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

The concern I have on this API design is the fact that types that are exposed in the public API come from mkldnn, which evolves independently from mxnet.

@ZhennanQin
Copy link
Contributor Author

@szha , A better design is isolating public API with internal API, which is, create a new ndarray wrapper class that only exposes public API. But this probably can't be done within 1.4.x. Consider there're many mkldnn APIs already existing in ndarray.h, e.g.

https://github.com/apache/incubator-mxnet/blob/3165262f1f4c94aaf9bb9a333f32d4c94fddf293/include/mxnet/ndarray.h#L722-L745

so I think it's fine for this time.

@szha
Copy link
Member

szha commented Jan 22, 2019

Yes, IMO those shouldn't have happened either. We'd have to address those in 2.0.

An alternative to extending the NDArray class is to pass around the metadata using nnvm within the abstraction of subgraph.

@szha
Copy link
Member

szha commented Jan 22, 2019

#9686 (comment)

lanking520 pushed a commit to lanking520/incubator-mxnet that referenced this pull request Feb 18, 2019
@ZhennanQin ZhennanQin deleted the 1.4 branch September 16, 2019 07:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-review PR is waiting for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants