sxjscience edited a comment on issue #19722: URL: https://github.com/apache/incubator-mxnet/issues/19722#issuecomment-751855108
I think shifting by `logsumexp` is reasonable. When the inputs are already from log_softmax, `logsumexp(x)` will be 0 so the behavior is the same as the current version. Basically, `logsumexp(log_softmax(x)) == 0` ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
