Skip to content

Commit b20586c

Browse files
liuplusweiphlrain
authored andcommitted
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
1 parent 9b30c51 commit b20586c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

paddle/fluid/operators/scatter_op.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ class ScatterOp : public framework::OperatorWithKernel {
4242
PADDLE_ENFORCE_EQ(ctx->GetInputDim("Updates")[0],
4343
ctx->GetInputDim("Ids")[0],
4444
"Updates and Ids should have same batch-size.");
45-
framework::DDim data_dim(updates_dims);
46-
for (int i = 1; i < data_dim.size(); ++i) {
47-
PADDLE_ENFORCE_EQ(data_dim[i], updates_dims[i]);
48-
}
4945
ctx->SetOutputDim("Out", ref_dims);
5046
}
5147

0 commit comments

Comments
 (0)