Skip to content

Avoid string comparisons for PyTorch version comparison #4296

@fmassa

Description

@fmassa

🚀 Feature

PyTorch now exposes torch.__version__ as a TorchVersion object, which allows for better version comparisons.
We might be able to simplify things like https://github.com/pytorch/vision/pull/4285/files#r692734821

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions