未验证 提交 06e35ae4 编写于 作者: W whs 提交者: GitHub

Fix infer shape of warpctc op. (#20656)

上级 7b9b7303
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册