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

Commit

Permalink
add default parameter for mkldnn rnn
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv committed Oct 31, 2019
1 parent 5ed6d93 commit b38d6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/nn/mkldnn/mkldnn_rnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ void MKLDNNRnnOp::Init(const OpContext &ctx,
size_t layer_bias_bytes = single_b_bytes * directions; // Naive MXNet has double bias

if (!fwd_layer.IsInitialized() || is_training)
fwd_layer.SetWeightsMem(&(this->mgr_), weights_ptr, bias_ptr, dtype);
fwd_layer.SetWeightsMem(&(this->mgr_), weights_ptr, bias_ptr, is_training, dtype);
weights_ptr += layer_weights_bytes;
bias_ptr += layer_bias_bytes;
}
Expand Down

0 comments on commit b38d6a9

Please sign in to comment.