Skip to content

Commit

Permalink
Fix Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
reyoung committed Dec 22, 2017
1 parent 540af31 commit 11f4f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/operators/reorder_lod_tensor_by_rank_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ class ReorderLodTensorByRankGradOpMaker
using framework::SingleGradOpDescMaker::SingleGradOpDescMaker;

protected:
std::unique_ptr<framework::OpDescBind> Apply() const override {
auto *grad_op = new framework::OpDescBind();
std::unique_ptr<framework::OpDesc> Apply() const override {
auto *grad_op = new framework::OpDesc();
grad_op->SetType("reorder_lod_tensor_by_rank_grad");
grad_op->SetInput("X", OutputGrad("Out"));
grad_op->SetOutput("Out", InputGrad("X"));
grad_op->SetInput("RankTable", Input("RankTable"));
return std::unique_ptr<framework::OpDescBind>(grad_op);
return std::unique_ptr<framework::OpDesc>(grad_op);
}
};

Expand Down

0 comments on commit 11f4f89

Please sign in to comment.