Skip to content

Commit

Permalink
fix bugs, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Shixiaowei02 committed Jun 22, 2021
1 parent 41bfad5 commit 019e443
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paddle/fluid/framework/ir/seqpool_cvm_concat_fuse_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ SeqPoolCVMConcatFusePass::SeqPoolCVMConcatFusePass() {
.IsTensor()
.End()
.AddOutput("MaxIndex")
.IsOptional()
.End()
.AddAttr("pooltype")
.IsStringIn({"AVERAGE", "SUM", "SQRT", "LAST", "FIRST", "MAX"})
.End()
.AddAttr("pad_value")
.End();
Expand All @@ -85,6 +87,7 @@ SeqPoolCVMConcatFusePass::SeqPoolCVMConcatFusePass() {
.End()
.AddInput("AxisTensor")
.IsTensor()
.IsOptional()
.End()
.AddOutput("Out")
.IsTensor()
Expand Down

0 comments on commit 019e443

Please sign in to comment.