Skip to content

Commit

Permalink
Use pten::SelectedRows
Browse files Browse the repository at this point in the history
  • Loading branch information
veyron95 committed Jan 22, 2022
1 parent aa5d93f commit 8c51888
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions paddle/fluid/framework/details/reduce_op_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/framework/selected_rows_utils.h"
#include "paddle/fluid/platform/device_context.h"
namespace pten {
class SelectedRows;
} // namespace pten

namespace paddle {
namespace framework {

Expand Down Expand Up @@ -132,11 +130,11 @@ struct ReduceOpHandle : public OpHandleBase {
defined PADDLE_WITH_DISTRIBUTE
template <typename DevCtx, typename DataType>
void GatherSelectedRows(
const std::vector<const SelectedRows *> &src_selecte_rows_,
const std::vector<const pten::SelectedRows *> &src_selecte_rows_,
const std::vector<platform::Place> &in_places,
const std::map<platform::Place, platform::DeviceContext *> &dev_ctxes,
VarHandle *out_var_handle, const platform::Place &out_place,
SelectedRows *dst_selecte_rows);
pten::SelectedRows *dst_selecte_rows);
#endif

void Wait(
Expand Down

0 comments on commit 8c51888

Please sign in to comment.