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

Class InferenceClass

tests/test_tracking_inference.py:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class InferenceClass:
28 def __init__(self):
29 self.model = mock_load_model()
30
31 def predict(self, input_data):
32 heavy_computation(input_data)
33
34
35class TestCarbonInferenceTracker(unittest.TestCase):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…