mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
Update pytorch_lightning.py
update deprecated property
This commit is contained in:
parent
ec53de75b4
commit
f85dc71f46
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ class GpuStatsLogger(Callback): # pylint: disable=too-many-instance-attributes
|
|||
f'The root device type is {trainer.strategy.root_device.type}.',
|
||||
)
|
||||
|
||||
device_ids = trainer.data_parallel_device_ids
|
||||
device_ids = trainer.device_ids
|
||||
try:
|
||||
self._devices = get_devices_by_logical_ids(device_ids, unique=True)
|
||||
except (libnvml.NVMLError, RuntimeError) as ex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue