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

Commit

Permalink
Fix typo and make compare function static inline
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawrych committed Oct 22, 2020
1 parent 0312229 commit ca81a99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/operator/nn/mkldnn/mkldnn_rnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ inline int GetRnnGatesNum(int mode) {
}
}

// Bug in oneDNN >= 1.6 in memory descriptor comparision operators.
// Bug in oneDNN <= 1.6 in memory descriptor comparision operators.
// for specific dims and strides in descriptors == operator can return `true`
// but get_size() function will return different size
// TODO(bgawrych): Remove with oneDNN 1.7 upgrade
bool CheckMemDescEquality(const mkldnn::memory::desc &left, const mkldnn::memory::desc &right) {
static inline bool CheckMemDescEquality(const mkldnn::memory::desc &left,
const mkldnn::memory::desc &right) {
return left == right && left.get_size() == right.get_size();
}

Expand Down

0 comments on commit ca81a99

Please sign in to comment.