TccccD edited a comment on issue #11938: l2_normalization for fp16 got 0.0 when 
data is very large
URL: 
https://github.com/apache/incubator-mxnet/issues/11938#issuecomment-409432415
 
 
   I define a new square  like this:
   > MXNET_BINARY_MATH_OP(square_v, math::sqr(a) / math::sqr(b)); 
   
   In l2_normalization_op-inl.h, I should find a suitable scale, I think the 
maximum value in in_data is OK.
   But I don't know how find the  maximum value in a Tensor data, like 
Tensor<xpu, 2, DType> data;
   could you help me? thanks!
   @haojin2 @piiswrong @leezu @anirudh2290 @szha

----------------------------------------------------------------
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