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

@torch.cuda.amp.custom_fwd deprecated on newer versions of PyTorch #134

Open
Parskatt opened this issue Sep 14, 2024 · 0 comments
Open

@torch.cuda.amp.custom_fwd deprecated on newer versions of PyTorch #134

Parskatt opened this issue Sep 14, 2024 · 0 comments

Comments

@Parskatt
Copy link

Parskatt commented Sep 14, 2024

@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32) in https://github.com/cvg/LightGlue/blob/main/lightglue/lightglue.py#L24

gives

FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

I think it's not as simple as changing it, as I can't find torch.amp.custom_fwd for old PyTorch
versions (and seems like you want to support back to 1.9). Anyway, just a heads up.

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

No branches or pull requests

1 participant