MCPcopy
hub / github.com/tinygrad/tinygrad / ComposeTransforms

Class ComposeTransforms

examples/train_resnet.py:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class ComposeTransforms:
14 def __init__(self, trans):
15 self.trans = trans
16
17 def __call__(self, x):
18 for t in self.trans:
19 x = t(x)
20 return x
21
22if __name__ == "__main__":
23 X_train, Y_train, X_test, Y_test = fetch_mnist()

Callers 1

train_resnet.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…