-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix mypy for utilities.memory
#8744
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
Conversation
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #8744 +/- ##
=======================================
- Coverage 93% 89% -4%
=======================================
Files 169 169
Lines 14072 14076 +4
=======================================
- Hits 13041 12466 -575
- Misses 1031 1610 +579 |
|
@stancld thanks for doing these! very appreciated <3 |
|
@awaelchli No worries, it's great to learn something new :) There's one last mypy issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one last mypy issue.
You just need to check that shutil.which does not return None
for more information, see https://pre-commit.ci
utilities.memoryutilities.memory
* Fix the majority of mypy issues * Apply @carmocca's suggestion * Handle the exception when nvidia-smi not found * Update get_gpu_memory_map's docstring Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
What does this PR do?
Part of #7037. This PR disentangles large #7218. It fixes mypy typing in
utilities.memory.py.Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃