Skip to content

Conversation

cyyever
Copy link

@cyyever cyyever commented Sep 14, 2025

Suggest using a*torch.rsqrt(b) because it is faster than a/torch.sqrt(b) if the accelerator provides the instructions.
See https://docs.pytorch.org/docs/stable/generated/torch.rsqrt.html

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 14, 2025
Signed-off-by: Yuanyuan Chen <[email protected]>
Signed-off-by: Yuanyuan Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants