MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / num_gpus

Method num_gpus

utils/pl_utils.py:458–463  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

456
457 @property
458 def num_gpus(self):
459 gpus = self.data_parallel_device_ids
460 if gpus is None:
461 return 0
462 else:
463 return len(gpus)
464
465 @property
466 def data_parallel(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected