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

F.interpolate not compatible with bfloat16 #156

Closed
Warvito opened this issue Dec 24, 2022 · 3 comments · Fixed by #157
Closed

F.interpolate not compatible with bfloat16 #156

Warvito opened this issue Dec 24, 2022 · 3 comments · Fixed by #157
Assignees

Comments

@Warvito
Copy link
Collaborator

Warvito commented Dec 24, 2022

As mentioned in pytorch/pytorch#86679, F.interpolate is not compatible with bfloat.

It is necessary to convert to float32 its usage in

x = F.interpolate(x, scale_factor=2.0, mode="nearest")

and

x = F.interpolate(x, scale_factor=2.0, mode="nearest")

@Warvito
Copy link
Collaborator Author

Warvito commented Dec 24, 2022

Related to #133

@danieltudosiu
Copy link
Contributor

danieltudosiu commented Dec 24, 2022 via email

@Warvito Warvito self-assigned this Dec 24, 2022
@Warvito Warvito linked a pull request Dec 24, 2022 that will close this issue
@Warvito
Copy link
Collaborator Author

Warvito commented Jan 14, 2023

Hi @danieltudosiu , here I meant bfloat16. It works fine with amp

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 a pull request may close this issue.

2 participants