We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bed961 commit 75426e0Copy full SHA for 75426e0
paddle/operators/gru_op.h
@@ -154,6 +154,7 @@ class GRUGradKernel : public framework::OpKernel<T> {
154
}
155
if (h0_grad) {
156
ordered_h0_grad.mutable_data<T>(h0_grad->dims(), context.GetPlace());
157
+ zero(context.device_context(), &ordered_h0_grad, static_cast<T>(0.0));
158
159
160
bool is_reverse = context.Attr<bool>("is_reverse");
python/paddle/v2/framework/tests/test_gru_op.py
@@ -149,7 +149,7 @@ def set_confs(self):
149
self.is_reverse = True
150
self.attrs = {
151
'activation': 'tanh',
152
- 'gate_activation': 'tanh',
+ 'gate_activation': 'sigmoid',
153
'is_reverse': self.is_reverse
0 commit comments