Skip to content

Commit

Permalink
benchdnn: rnn: fix in dst_layer dereferencing for bidir_concat
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem committed Aug 12, 2019
1 parent 1188010 commit cf83e83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/benchdnn/rnn/rnn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,9 @@ inline size_t tnc_off_f(const prb_t *p, int64_t t, int64_t n, int64_t c) {

inline void inv_tnc_off_f(
const prb_t *p, size_t off, int64_t &t, int64_t &n, int64_t &c) {
c = off % p->sic;
off /= p->sic;
auto cout = p->sic * (1 + (p->direction == mkldnn_bidirectional_concat));
c = off % cout;
off /= cout;
n = off % p->mb;
off /= p->mb;
t = off % p->n_iter;
Expand Down

0 comments on commit cf83e83

Please sign in to comment.