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

gpu f16 cast to fp32 calculation, and then converted back? #11975

Open
chengmengli06 opened this issue Apr 30, 2024 · 1 comment
Open

gpu f16 cast to fp32 calculation, and then converted back? #11975

chengmengli06 opened this issue Apr 30, 2024 · 1 comment

Comments

@chengmengli06
Copy link

For elementwise operations with fp16 input, the data is first converted to fp32, and convert back after call gpu functions? But gpu actually support fp16 and bf16.
bool cast_result_to_fp16 = false;

@chengmengli06
Copy link
Author

besides, does xla support tf32 now?

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

No branches or pull requests

1 participant