MCPcopy Create free account
hub / github.com/mlco2/codecarbon / __init__

Method __init__

tests/test_cpu.py:727–730  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

725 def test_normalize_gpu_ids_mixed_list_with_escaping(self):
726 class DummyTracker:
727 def __init__(self):
728 self._conf = {}
729 self._gpu_ids = [0, "MIG-f1e$%^", "1, 2", "GPU-abcd!"]
730 self._hardware = []
731
732 tracker = DummyTracker()
733 resource_tracker = ResourceTracker(tracker)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected