v2.0.19 - Bump version from 2.0.18 to 2.0.19 (#122)
🌟 Summary
v2.0.19 is a maintenance-focused release: it officially bumps the package version, improves profiling correctness for parameter counting, and modernizes CI/CD workflows—without introducing new model architectures or user-facing API changes. 📦✅
📊 Key Changes
-
(Most immediate change, current PR #122)
thopversion updated from 2.0.18 → 2.0.19 by @glenn-jocher 🔢- This is the release marker and packaging update.
-
Profiling correctness fix (important functional improvement) 🧠
- In
thop/profile.py, recursive counting now starts with the module’s own parameter count (module.total_params.item()), improving total parameter accounting. - In
thop/vision/basic_hooks.py, parameter counting now usesparameters(recurse=False)to avoid double-counting child-module parameters in hierarchical models.
- In
-
New tests to validate Conv2D parameter counting behavior 🧪
- Added checks for:
- root
Conv2dmodules counting their own params correctly Sequentialwrappers not double-counting child params
- root
- Added checks for:
-
GitHub Actions workflow upgrades ⚙️
- Updated core actions (
checkout,setup-python,upload-artifact,download-artifact) and Slack action versions. - Includes migration toward newer Node runtime requirements (Node 24 in several actions).
- Updated core actions (
-
Documentation and style cleanups 🧹
- Minor docstring formatting improvements.
- External URL cleanup (YouTube + CUDA toolkit links) for more reliable docs navigation.
🎯 Purpose & Impact
- For users of
thopprofiling: more reliable parameter totals, especially in nested module structures. 📈 - For developers and maintainers: stronger regression protection via new tests and cleaner docs. 👩💻
- For CI/CD pipelines: updated automation stack improves long-term maintainability, but self-hosted runners may need to meet newer runner/runtime requirements. 🚦
- Overall risk: low-to-moderate operational change; no new model features, but a meaningful correctness fix in profiling internals. 👍
What's Changed
- Bump actions/upload-artifact from 4 to 5 in /.github/workflows by @dependabot[bot] in #108
- Bump actions/download-artifact from 4 to 6 in /.github/workflows by @dependabot[bot] in #107
- Bump actions/setup-python from 5 to 6 in /.github/workflows by @dependabot[bot] in #106
- Update Google-style docstrings by @glenn-jocher in #109
- Bump actions/checkout from 5 to 6 in /.github/workflows by @dependabot[bot] in #110
- Bump actions/upload-artifact from 5 to 6 in /.github/workflows by @dependabot[bot] in #112
- Bump actions/download-artifact from 6 to 8 in /.github/workflows by @dependabot[bot] in #118
- Bump actions/upload-artifact from 6 to 7 in /.github/workflows by @dependabot[bot] in #117
- Bump slackapi/slack-github-action from 2.1.1 to 3.0.1 in /.github/workflows by @dependabot[bot] in #119
- Fix redirected URLs by @glenn-jocher in #120
- Bump slackapi/slack-github-action from v3.0.1 to v3.0.2 in /.github/workflows by @UltralyticsAssistant in #121
- Bump version from 2.0.18 to 2.0.19 by @glenn-jocher in #122
Full Changelog: v2.0.18...v2.0.19