From a3e641e93c32c8a249e5d79669ee3a694c3e6de7 Mon Sep 17 00:00:00 2001 From: whs Date: Thu, 17 Oct 2019 09:52:20 +0800 Subject: [PATCH] Fix infer shape of warpctc op. (#20653) test=develop --- paddle/fluid/operators/warpctc_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/warpctc_op.cc b/paddle/fluid/operators/warpctc_op.cc index 7033d55a53..df9212f9c9 100644 --- a/paddle/fluid/operators/warpctc_op.cc +++ b/paddle/fluid/operators/warpctc_op.cc @@ -52,7 +52,7 @@ class WarpCTCOp : public framework::OperatorWithKernel { sequence_width); // TODO(liuyiqun): it is tricky to set the wrong dimension here. - ctx->SetOutputDim("Loss", {logits_dims[0], 1}); + ctx->SetOutputDim("Loss", {-1, 1}); } protected: -- GitLab