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

Function inference

examples/task_inference.py:18–21  ·  view source on GitHub ↗
(model, data, inference_task_name)

Source from the content-addressed store, hash-verified

16
17
18def inference(model, data, inference_task_name):
19 print(f"Running inference {inference_task_name} on {model} {data}")
20 sleep(5)
21 return "inference_result"
22
23
24def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…