Fix bug introduced in PR #2764 by maximpavliv · Pull Request #2772 · DeepLabCut/DeepLabCut
Navigation Menu
{{ message }}
DeepLabCut / DeepLabCut Public
- Notifications You must be signed in to change notification settings
- Fork 1.8k
Merged
Conversation
Copy link
Contributor
maximpavliv
commented
Oct 31, 2024
maximpavliv
commented
In Pull Request #2764, I accidentaly introduced a bug:
gpus key may not be present in run_config, and it crashed when trying to get the corresponding value like this.
Using .get() instead of [] synthax returns Null when the key is not defined, instead of crashing.
maximpavliv
requested a review
from n-poulsen
n-poulsen approved these changes Nov 1, 2024
n-poulsen
merged commit
17d7205
into
pytorch_dlc
n-poulsen
deleted the
maxim/bugfix
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment