Skip to content

Commit

Permalink
Fix MKLDNNSum cpp test failure (apache#12080)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhuang415 authored and anirudh2290 committed Aug 16, 2018
1 parent cfc6a0a commit 81cbd91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/cpp/operator/mkldnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,6 @@ TEST(IMPERATIVE, PoolingOp) {
}
}

// Disabling Flaky Test. Tracked at https://github.com/apache/incubator-mxnet/issues/11998
/*
TEST(MKLDNN_BASE, MKLDNNSum) {
std::vector<NDArrayAttrs> in_arrs = GetTestInputArrays();
std::vector<NDArrayAttrs> in_arrs2 = GetTestInputArrays(true);
Expand Down Expand Up @@ -1310,6 +1308,7 @@ TEST(MKLDNN_BASE, MKLDNNSum) {
auto input_mem = in_arr.arr.GetMKLDNNData();
auto input_mem2 = in_arr2.arr.GetMKLDNNData();
NDArrayAttrs orig_arr(in_arr.arr.Copy(in_arr.arr.ctx()), "In Place Copy");
orig_arr.arr.WaitToRead();
PrintVerifyMsg(orig_arr, in_arr);
InitMKLDNNArray(&orig_arr.arr, input_mem->get_primitive_desc());
orig_arr.arr.CopyFrom(*input_mem);
Expand All @@ -1318,7 +1317,6 @@ TEST(MKLDNN_BASE, MKLDNNSum) {
VerifySumResult({&orig_arr.arr, &in_arr2.arr}, {&in_arr.arr});
}
}
*/

TEST(MKLDNN_BASE, CreateMKLDNNMem) {
std::vector<NDArrayAttrs> in_arrs = GetTestInputArrays();
Expand Down

0 comments on commit 81cbd91

Please sign in to comment.