Skip to content

Commit

Permalink
Fix LayerNormIndRNN 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 7eaf521 commit 51d2a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frameworks/tf/layer_norm_indrnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ struct HasteLayerNormIndrnnGradOp : 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 51d2a9f

Please sign in to comment.