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

Enable fp8 inductor unit tests #1421

Merged
merged 6 commits into from
Jun 2, 2024

Conversation

alugorey
Copy link

No description provided.

Comment on lines 41 to 44
elif float8_dtype == torch.float8_e4m3fnuz:
x = x.clamp(min=-1 * E4M3_MAX_POS, max=E4M3_MAX_POS)
elif float8_dtype == torch.float8_e5m2fnuz:
x = x.clamp(min=-1 * E5M2_MAX_POS, max=E5M2_MAX_POS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be *FNUZ (E4M3FNUZ_MAX_POS and E5M2FNUZ_MAX_POS)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they sure should!

@pruthvistony pruthvistony merged commit ce5e7e7 into ROCm:rocm6.2_internal_testing Jun 2, 2024
1 check was pending
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

Successfully merging this pull request may close these issues.

None yet

4 participants