From 11f4f89bc1835164ab9bacb8fe1f939a602a9971 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Fri, 22 Dec 2017 12:57:23 +0800 Subject: [PATCH] Fix Compile --- paddle/operators/reorder_lod_tensor_by_rank_op.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/operators/reorder_lod_tensor_by_rank_op.cc b/paddle/operators/reorder_lod_tensor_by_rank_op.cc index 369bd4391c9..5e3079ee0c9 100644 --- a/paddle/operators/reorder_lod_tensor_by_rank_op.cc +++ b/paddle/operators/reorder_lod_tensor_by_rank_op.cc @@ -173,13 +173,13 @@ class ReorderLodTensorByRankGradOpMaker using framework::SingleGradOpDescMaker::SingleGradOpDescMaker; protected: - std::unique_ptr Apply() const override { - auto *grad_op = new framework::OpDescBind(); + std::unique_ptr 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(grad_op); + return std::unique_ptr(grad_op); } }; -- GitLab