From 6864370a9e7ba991b0dba2553150901bcf63234f Mon Sep 17 00:00:00 2001 From: liuwei1031 <46661762+liuwei1031@users.noreply.github.com> Date: Tue, 16 Apr 2019 10:42:39 +0800 Subject: [PATCH] scatter_op bug fix, test=develop (#16866) * scatter_op bug fix, test=develop * scatter_op bug fix, test=develop * scatter_op bug fix, test=develop --- paddle/fluid/operators/scatter_op.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paddle/fluid/operators/scatter_op.cc b/paddle/fluid/operators/scatter_op.cc index 8e0e3bd60..68ad223b3 100644 --- a/paddle/fluid/operators/scatter_op.cc +++ b/paddle/fluid/operators/scatter_op.cc @@ -42,10 +42,6 @@ class ScatterOp : public framework::OperatorWithKernel { PADDLE_ENFORCE_EQ(ctx->GetInputDim("Updates")[0], ctx->GetInputDim("Ids")[0], "Updates and Ids should have same batch-size."); - framework::DDim data_dim(updates_dims); - for (int i = 1; i < data_dim.size(); ++i) { - PADDLE_ENFORCE_EQ(data_dim[i], updates_dims[i]); - } ctx->SetOutputDim("Out", ref_dims); } -- GitLab