Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

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.

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants