-
Notifications
You must be signed in to change notification settings - Fork 6.8k
cherry-pick bug fixes in MKLDNN for v1.2.0 #11212
Conversation
* add windows mkldnn instruction * update readme * typo full mkl to mkldnn * update blas * update mxnet url * update mkl build * intel mkl liscence * retrigger
* use mkl-dnn for 'valid' pooling_convention only * pooling convention full not supported by current mkl-dnn impl * disable unreachable code * add sample model test for mkldnn * fix review feedback * add jira link to comment * fix lint issue * rename python test for mkl * enable python tests for mkldnn in CI * use vgg16 with convention full * fix unittest
…#10616) * ensure same mkldnn engine is used for consistency * add unittest for mkldnn engine thread testing * add comments for thread context switching * fix lint issue * use dummy data
* handle inplace in mkldnn FallBackCompute * add comments * handle kAddTo in mkldnn FallBackCompute * add PR feedback * add unittest for mkldnn inplace sum with cpu data * add back mkldnn engine threading unittest * separate mkldnn install test and fix pylint issue * remove --build from mkldnn jenkins test * update mkldnn unittests * update comments for mkldnn test * remove python test doc string so unittest name is used
@anirudh2290 i have removed #10578 |
@anirudh2290 The update of MKL-DNN in #10578 fixed the depthConv issue. |
@pengzhao-intel I understand depthwise convolution is widely used but it is too big a change to be added to the patch release. What do others think @zheng-da @piiswrong ? |
@anirudh2290 Totally understand it will be a risk. |
@pengzhao-intel There are still a lot of non CI-specific code changes. Since MKLDNN is marked as experimental for the release, I would err on the side of caution, add it to known issues for MKLDNN, and not add it to the release. |
tests/cpp/operator/mkldnn.cc
Outdated
// Check whether the number of format is correct. | ||
CHECK_EQ(mkldnn_format_last, 56); | ||
CHECK_EQ(mkldnn_nchw, 5); | ||
CHECK_EQ(mkldnn_oihw, 12); |
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.
why are these unnecessary tests and how are they running on master ?
this test was from the PR
https://github.com/apache/incubator-mxnet/pull/10578/files.
…On Tue, Jun 12, 2018 at 4:01 PM, Anirudh Subramanian < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tests/cpp/operator/mkldnn.cc
<#11212 (comment)>
:
> @@ -81,13 +81,6 @@ TEST(MKLDNN_UTIL_FUNC, AlignMem) {
#endif
}
-TEST(MKLDNN_UTIL_FUNC, MemFormat) {
- // Check whether the number of format is correct.
- CHECK_EQ(mkldnn_format_last, 56);
- CHECK_EQ(mkldnn_nchw, 5);
- CHECK_EQ(mkldnn_oihw, 12);
why are these unnecessary tests and how are they running on master ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11212 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAETUTBnTKXGftIH8FN6a0cLbRhn6uL2ks5t8EhDgaJpZM4Ug_CB>
.
|
@zheng-da ok got it! |
* test inference multiple times. * Fix a bug in GetMKLDNNData(). * Update comments. * Handle all cases for GetMKLDNNDataReorder * avoid unnecessary message. * Add C++ unit test for NDArray. * Fix a minor bug. * Unit tests on GetMKLDNNDataReorder. * Fix lint error. * Add more test cases. * add comments for the test code. * Reorganize test code. * Fix cpp tests. * test. * Add a new Jenkins compile task. * Update jenkins. * update jenkins. * Fix a Jenkins. * Fix jenkins. * Fix jenkins. * Fix CMake for MKLDNN. * Fix jenkins. * update jenkins. * update CMake. * Fix cmake. * update CI. * add comment. * add comments. * cmake builds mkldnn with -mtune=generic by default. * adjust comments. remove unnecessary tests.
* Revert "Revert "invalidate outputs for imperative."" This reverts commit b428937. * invalidate mkldnn memory. * enable test.
…apache#10651) * handle writeinplace correctly for mkldnn arrays. * Add unit tests. * Fix a bug in mkldnn copy. * Fix a bug in ndarray copy. * Verify results.
* Fix bugs in MKLDNN. * add more test cases. * Fix CopyFrom when it's the view of an NDArray. * add test. * check same shape correctly. * add unit test for CopyFrom. * Fix warning. * Add test sum. * fix sum. * Fix fallback. * Fix fallback of sum. * add tests. * Update mkldnn.cc
Description
This PR cherry-picks bug fixes for MKLDNN in the master branch to the v1.2.0 branch
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments