TccccD commented on a change in pull request #12440: Add stable nrm2 for L2 
normalization
URL: https://github.com/apache/incubator-mxnet/pull/12440#discussion_r242803762
 
 

 ##########
 File path: src/operator/l2_normalization-inl.h
 ##########
 @@ -314,6 +309,11 @@ class L2NormalizationProp : public OperatorProperty {
     return {{out_grad[l2_normalization::kOut], 
in_grad[l2_normalization::kData]}};
   }
 
+  std::vector<ResourceRequest> ForwardResource(
+      const std::vector<TShape> &in_shape) const override {
+    return{ ResourceRequest::kTempSpace };
+  }
+
 
 Review comment:
   The main problem is that we don't know the cause of this problem. It is 
difficult to build a test case. @anirudh2290 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to