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 2019/05/24 16:35:41 UTC

[GitHub] [incubator-mxnet] apeforest edited a comment on issue #14992: [MXNET-978] Support higher order gradient for `log`.

apeforest edited a comment on issue #14992: [MXNET-978] Support higher order gradient for `log`.
URL: https://github.com/apache/incubator-mxnet/pull/14992#issuecomment-495414142
 
 
   > > I do not fully understand your question of 1/log(2.0), 1/log(10.0) multiplied with gradient for log2, log 10. Could you please elaborate?
   > 
   > Reading it again, I phrased it poorly. Sorry. So actually, plan was to update `gradient` for `log2`, which would be `1/(log(2.0) * x)`, for which I would have required a `log(2.0)`. So how to get that, is scalar multiplication allowed ? or `ones_like` followed by `fill`.
   > 
   > **Note**: This is not needed for this PR. But curious to know.
   > 
   > Thank You.
   
   After reviewing your code, I had a better understanding of what you meant. I think you can do an elemwise_mul operator with Op('log') and a vector filled with 2.0. There maybe other ways to optimize the graph representation, but I think this should actually work.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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