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

Commit c3e0d99

Browse files
authored
[submodule] Upgrade oneDNN to v2.2.1 (#20080)
1 parent 915aa55 commit c3e0d99

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

3rdparty/onednn

src/operator/nn/mkldnn/mkldnn_convolution.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,7 @@ void MKLDNNConvolutionForwardFullFeature(const MKLDNNConvFullParam &param, const
418418
weight.MKLDNNDataReorderAsync(fwd->GetPd().weights_desc());
419419
weight_mem = GetWeights(weight, fwd->GetPd().weights_desc(), param.conv_param.num_group);
420420
} else {
421-
weight_mem = weight.GetMKLDNNData();
422-
CHECK(weight_mem->get_desc() == fwd->GetPd().weights_desc());
421+
weight_mem = weight.GetMKLDNNDataReorder(fwd->GetPd().weights_desc());
423422
}
424423
}
425424
mkldnn_output_t out_mem;

tests/cpp/operator/mkldnn_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void VerifyDefMem(const mkldnn::memory &mem) {
100100

101101
TEST(MKLDNN_UTIL_FUNC, MemFormat) {
102102
// Check whether the number of format is correct.
103-
CHECK_EQ(mkldnn_format_tag_last, 222);
103+
CHECK_EQ(mkldnn_format_tag_last, 363);
104104
CHECK_EQ(mkldnn_nchw, 5);
105105
CHECK_EQ(mkldnn_oihw, 5);
106106
}

0 commit comments

Comments
 (0)