⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

[FutureWarning] Resolving warnings caused by deprecated function usage.#1867

Open
drivanov wants to merge 1 commit intoNVIDIA:masterfrom
drivanov:custom_fwd_bwd
Open

[FutureWarning] Resolving warnings caused by deprecated function usage.#1867
drivanov wants to merge 1 commit intoNVIDIA:masterfrom
drivanov:custom_fwd_bwd

Conversation

@drivanov
Copy link

This PR provides a fix for the following warnings:

/usr/local/lib/python3.12/dist-packages/apex/contrib/cudnn_gbn/batch_norm.py:12: FutureWarning: 
`torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @custom_fwd
/usr/local/lib/python3.12/dist-packages/apex/contrib/cudnn_gbn/batch_norm.py:24: FutureWarning: 
`torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.
  @custom_bwd

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