MCPcopy Index your code
hub / github.com/waleedka/hiddenlayer / __init__

Method __init__

hiddenlayer/transforms.py:22–26  ·  view source on GitHub ↗
(self, pattern, op, name=None)

Source from the content-addressed store, hash-verified

20
21class Fold():
22 def __init__(self, pattern, op, name=None):
23 # TODO: validate that op and name are valid
24 self.pattern = ge.GEParser(pattern).parse()
25 self.op = op
26 self.name = name
27
28 def apply(self, graph):
29 # Copy the graph. Don't change the original.

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected