Skip to content

Commit 06e35ae

Browse files
Fix infer shape of warpctc op. (#20656)
1 parent 7b9b730 commit 06e35ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/warpctc_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class WarpCTCOp : public framework::OperatorWithKernel {
5252
sequence_width);
5353

5454
// TODO(liuyiqun): it is tricky to set the wrong dimension here.
55-
ctx->SetOutputDim("Loss", {logits_dims[0], 1});
55+
ctx->SetOutputDim("Loss", {-1, 1});
5656
}
5757

5858
protected:

0 commit comments

Comments
 (0)