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.
2 parents 7066b38 + efb5c03 commit 6cf8f24Copy full SHA for 6cf8f24
paddle/fluid/operators/sgd_op.h
@@ -109,8 +109,6 @@ class SGDOpKernel : public framework::OpKernel<T> {
109
const auto *grad_data = grad.value().data<T>();
110
auto *out_data = param_out->mutable_value()->data<T>();
111
for (size_t i = 0; i < grad.rows().size(); i++) {
112
- PADDLE_ENFORCE(grad.rows()[i] < grad.height(),
113
- "Input rows index should less than height");
114
int64_t id_index = param_out->AutoGrownIndex(grad.rows()[i], false);
115
PADDLE_ENFORCE_GE(id_index, static_cast<int64_t>(0),
116
"id should be in the table");
0 commit comments