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

Fix cuda initialize issue #497

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Fix cuda initialize issue #497

merged 1 commit into from
Jul 1, 2024

Conversation

KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Jul 1, 2024

Move @torch.cuda.amp.autocast(enabled=False) inside the function to avoid cuda initialize.

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@mingxin-zheng
Copy link
Contributor

Related issue: Project-MONAI/MONAI#7875

Copy link
Member

@ericspod ericspod left a comment

Choose a reason for hiding this comment

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

This looks equivalent to me. @virginiafdez we should apply this change in the gen-ai-dev branch as well, or apply it after merging if we can do that soon.

@ericspod ericspod merged commit 7428fce into Project-MONAI:main Jul 1, 2024
@KumoLiu KumoLiu deleted the cuda branch July 1, 2024 14:36
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.

3 participants