Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move float conversion functions from Types.h into new FloatConversion.h #3760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MatzeB
Copy link
Contributor

@MatzeB MatzeB commented Mar 4, 2025

Summary: There is a lot of inline code in Types.h for converting between different floating point types and I am about to add even more. However most users of this header are only interested in the float16, etc. type definitions but don't use the conversions. It seems like a good idea to move the conversion code to a separate FloatConversion.h header.

Reviewed By: excelle08

Differential Revision: D68042072

Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 0283ce8
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67c653a5e4f5bd0008561a0e
😎 Deploy Preview https://deploy-preview-3760--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Summary: There is a lot of inline code in `Types.h` for converting between different floating point types and I am about to add even more. However most users of this header are only interested in the `float16`, etc. type definitions but don't use the conversions. It seems like a good idea to move the conversion code to a separate `FloatConversion.h` header.

Reviewed By: excelle08

Differential Revision: D68042072
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68042072

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68042072

@MatzeB MatzeB force-pushed the export-D68042072 branch from 06bde5f to 0283ce8 Compare March 4, 2025 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants