You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/01 02:51:39 UTC
[GitHub] TccccD edited a comment on issue #11938: l2_normalization for fp16
got 0.0 when data is very large
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:
users@infra.apache.org
With regards,
Apache Git Services