Skip to content

Commit

Permalink
src: cpu: rnn: initialize local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem committed Jul 22, 2019
1 parent b58643c commit 102afa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/rnn/ref_rnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ void _ref_rnn_common_t<aprop, src_type, weights_type>::execute_(
if (aprop == prop_kind::backward) {
const size_t ws_sz = rnn.ws_diff_states_size / sizeof(float);
parallel(0, [&](const int ithr, const int nthr) {
size_t start, end;
size_t start = 0, end = 0;
balance211(ws_sz, nthr, ithr, start, end);
array_set(ws_diff_states + start, 0.f, end - start);
});
Expand Down

0 comments on commit 102afa7

Please sign in to comment.