Skip to content

Conversation

@KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Mar 19, 2025

Fix #411

To prevent deprecated errors in PyTorch 2.6 and later versions, make the following adjustments:

  • Incorporate weights_only=False in segresnet, while setting weights_only=True for other algorithms.
  • Transition to using torch.GradScaler("cuda", args...) and torch.autocast("cuda", args...), as recommended by the latest documentation at PyTorch AMP.

Signed-off-by: YunLiu <[email protected]>
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Mar 19, 2025

Signed-off-by: YunLiu <[email protected]>
@KumoLiu KumoLiu merged commit fd19f8a into Project-MONAI:main Mar 20, 2025
1 check passed
@KumoLiu KumoLiu deleted the support-py26-auto3d branch March 21, 2025 09:22
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.

Auto3dseg not support PyTorch 2.6+

2 participants