Skip to content

Commit

Permalink
Fix formatting and type checking issues
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Nov 7, 2024
1 parent a08094d commit c91e061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gpu_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def __init__(self):
def start_measure_gpu_mem(self):
def _get_mem_usage():
while True:
self.gpu_mem_usage.append(nvml.nvmlDeviceGetMemoryInfo(self.handle).used >> 20)
self.gpu_mem_usage.append(
nvml.nvmlDeviceGetMemoryInfo(self.handle).used >> 20
)
time.sleep(0.5)

if self.stop:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ exclude = "misc"
module = [
'yaml',
'faster_whisper.*',
'boto3.*'
'boto3.*',
'py3nvml.*'
]
ignore_missing_imports = true

0 comments on commit c91e061

Please sign in to comment.