未验证 提交 1e661715 编写于 作者: S smallv0221 提交者: GitHub

Update lstm_unit_op.cc

上级 d0c9f7e8
......@@ -25,8 +25,8 @@ class LstmUnitOp : public framework::OperatorWithKernel {
void InferShape(framework::InferShapeContext* ctx) const override {
OP_INOUT_CHECK(ctx->HasInput("X"), "Input", "X", "lstm_unit");
OP_INOUT_CHECK(ctx->HasInput("C_prev"), "Input", "C_prev", "lstm_unit");
OP_INOUT_CHECK(ctx->HasInput("C"), "Output", "C", "lstm_unit");
OP_INOUT_CHECK(ctx->HasInput("H"), "Output", "H", "lstm_unit");
OP_INOUT_CHECK(ctx->HasOutput("C"), "Output", "C", "lstm_unit");
OP_INOUT_CHECK(ctx->HasOutput("H"), "Output", "H", "lstm_unit");
auto x_dims = ctx->GetInputDim("X");
auto c_prev_dims = ctx->GetInputDim("C_prev");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册