-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(count_gpu_usage_general.py):
* - Rename `run_subprocess` function to `run_command` * - Remove unused imports * - Refactor `get_k8s_pods_gpu_info` function to use `subprocess.run` and `json.loads` for better readability * - Refactor `extract_gpu_info` function to handle containers as input instead of pod description * - Update `count_gpu_usage` function to use the updated functions and variables * - Remove unused code and variables
- Loading branch information
1 parent
6613b48
commit a5ec666
Showing
1 changed file
with
78 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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