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

Method simple_work_function

tests/test_unsupported_gpu.py:67–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 mock_pynvml.nvmlDeviceGetGraphicsRunningProcesses.return_value = []
66
67 def simple_work_function():
68 # Do some work
69 _ = sum(range(10000))
70
71 try:
72 # Using EmissionsTracker as a context manager

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected