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

Switched from distutils.version to pkg_resources #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

econeale
Copy link

@econeale econeale commented Oct 4, 2023

This PR fixes the following deprecation warnings:

.venv/lib/python3.11/site-packages/thop/profile.py:12
.venv/lib/python3.11/site-packages/thop/profile.py:12
  /Users/neale/panel-quality-imager/.venv/lib/python3.11/site-packages/thop/profile.py:12: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(torch.__version__) < LooseVersion("1.0.0"):

.venv/lib/python3.11/site-packages/thop/profile.py:68
.venv/lib/python3.11/site-packages/thop/profile.py:68
  /Users/neale/panel-quality-imager/.venv/lib/python3.11/site-packages/thop/profile.py:68: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(torch.__version__) >= LooseVersion("1.1.0"):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

This appears to be the same fix from #201 that doesn't appear to be merged and is closed by that author.

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