Skip to content

torch.amp.custom_fwd Error #168

@praina-dandy

Description

@praina-dandy

PR #163 had a mistake which breaks LightGlue on recent PyTorch versions.
hasattr(torch, "amp") cannot be used as the criterion to choose between torch.amp.custom_fwd and torch.cuda.amp.custom_fwd, because torch.amp was never fully removed. Only torch.amp.custom_fwd was removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions