We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b30c51 commit b20586cCopy full SHA for b20586c
paddle/fluid/operators/scatter_op.cc
@@ -42,10 +42,6 @@ class ScatterOp : public framework::OperatorWithKernel {
42
PADDLE_ENFORCE_EQ(ctx->GetInputDim("Updates")[0],
43
ctx->GetInputDim("Ids")[0],
44
"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
- }
49
ctx->SetOutputDim("Out", ref_dims);
50
}
51
0 commit comments