solin319 closed pull request #10366: fix bug in sgd URL: https://github.com/apache/incubator-mxnet/pull/10366
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/src/operator/optimizer_op.cc b/src/operator/optimizer_op.cc index f7ccbbb739d..2b87c22f041 100644 --- a/src/operator/optimizer_op.cc +++ b/src/operator/optimizer_op.cc @@ -311,10 +311,6 @@ only the row slices whose indices appear in grad.indices are updated (for both w [](const nnvm::NodeAttrs& attrs) { return std::vector<uint32_t>{2}; }) -.set_attr<FResourceRequest>("FResourceRequest", - [](const NodeAttrs& attrs) { - return std::vector<ResourceRequest>{ResourceRequest::kTempSpace}; - }) .set_attr<FCompute>("FCompute<cpu>", SGDMomUpdate<cpu>) .set_attr<FComputeEx>("FComputeEx<cpu>", SGDMomUpdateEx<cpu>) .add_argument("weight", "NDArray-or-Symbol", "Weight") ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services