Skip to content

update amp.custom_fwd to avoid future warning - #728

Open
yinguobing wants to merge 1 commit into
traveller59:masterfrom
yinguobing:fix/amp_custom_fwd
Open

update amp.custom_fwd to avoid future warning#728
yinguobing wants to merge 1 commit into
traveller59:masterfrom
yinguobing:fix/amp_custom_fwd

Conversation

@yinguobing

Copy link
Copy Markdown

Since PyTorch 2.4.0, torch.cuda.amp.custom_fwd(args...) is deprecated. Developers should use torch.amp.custom_fwd(args..., device_type='cuda') instead.

Document: https://pytorch.org/docs/2.4/amp.html#torch.cuda.amp.custom_fwd

Since PyTorch 2.4.0, torch.cuda.amp.custom_fwd(args...) is deprecated. Developers should use torch.amp.custom_fwd(args..., device_type='cuda') instead.
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.

1 participant