Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Safe accumulation type for nd.norm #14126

Closed
eric-haibin-lin opened this issue Feb 12, 2019 · 1 comment
Closed

Safe accumulation type for nd.norm #14126

eric-haibin-lin opened this issue Feb 12, 2019 · 1 comment
Assignees

Comments

@eric-haibin-lin
Copy link
Member

For FP16, reduction operators tend to loss precision if the accumulation data type remains fp16. Instead, the accumulation dtype should be in fp32. i.e.

dtype = fp16 -> acc_type = fp32
dtype = fp32 -> acc_type = fp64
dtype = fp64 -> acc_type = fp64

We should do it for the norm op.

Reference impl for softmax: #14098

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Feature

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants