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

Class CodeCarbonCallBack

examples/mnist_callback.py:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class CodeCarbonCallBack(Callback):
13 def __init__(self, codecarbon_tracker):
14 self.codecarbon_tracker = codecarbon_tracker
15
16 def on_epoch_end(self, epoch, logs=None):
17 self.codecarbon_tracker.flush()
18
19
20mnist = tf.keras.datasets.mnist

Callers 1

mnist_callback.pyFile · 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…