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 fd31b54 commit ae8b471Copy full SHA for ae8b471
paddle/fluid/operators/fused_embedding_fc_lstm_op.cc
@@ -93,11 +93,8 @@ void FusedEmbeddingFCLSTMOp::InferShape(
93
ctx->SetOutputDim("Cell", out_dims);
94
ctx->ShareLoD("Ids", "Hidden");
95
ctx->ShareLoD("Ids", "Cell");
96
- int xx_width;
97
- if (ctx->Attrs().Get<bool>("use_seq")) {
98
- xx_width = wh_dims[1];
99
- } else {
100
- xx_width = wh_dims[1]; //
+ int xx_width = wh_dims[1];
+ if (!ctx->Attrs().Get<bool>("use_seq")) {
101
PADDLE_ENFORCE(ctx->HasOutput("BatchedInput"),
102
"Assert only one Output(BatchedInput) of LSTM.");
103
PADDLE_ENFORCE(ctx->HasOutput("BatchedHidden"),
0 commit comments