Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fixed imports and docstring #95

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions watermark/watermark.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import types
from multiprocessing import cpu_count
from socket import gethostname
import platform

try:
from py3nvml import py3nvml
Expand Down Expand Up @@ -339,9 +338,9 @@ def _get_conda_env():

def _get_gpu_info():
if py3nvml is None:
return {"GPU Info": "Install the gpu extra "
"(pip install 'watermark[gpu]') "
"to display GPU information for NVIDIA chipsets"}
return {"GPU Info": 'Install the gpu extra '
'(pip install "watermark[gpu])") '
'to display GPU information for NVIDIA chipsets'}
try:
gpu_info = [""]
py3nvml.nvmlInit()
Expand Down