Skip to content

Commit

Permalink
Fix IndRNN recurrent scale's gradient shape (TensorFlow).
Browse files Browse the repository at this point in the history
Issue: #7
  • Loading branch information
sharvil committed Jun 1, 2020
1 parent 57eaae8 commit 7eaf521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frameworks/tf/indrnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ struct HasteIndrnnGradOp : public OpKernel {
OP_REQUIRES_OK(context, context->allocate_output(1, dW_shape, &dW));

// Needs to be initialized to 0.
const TensorShape du_shape = { hidden_size, hidden_size };
const TensorShape du_shape = { hidden_size };
Tensor* du = nullptr;
OP_REQUIRES_OK(context, context->allocate_output(2, du_shape, &du));

Expand Down

0 comments on commit 7eaf521

Please sign in to comment.