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

Method predict

tests/test_tracking_inference.py:31–32  ·  view source on GitHub ↗
(self, input_data)

Source from the content-addressed store, hash-verified

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 1

heavy_computationFunction · 0.70

Tested by

no test coverage detected