MCPcopy Create free account
hub / github.com/pytorch/pytorch / __init__

Method __init__

caffe2/experiments/python/SparseTransformer.py:28–35  ·  view source on GitHub ↗
(self, name, optype, p=None, op=None)

Source from the content-addressed store, hash-verified

26class NetDefNode():
27
28 def __init__(self, name, optype, p=None, op=None):
29 self.name = name
30 self.optype = optype
31 self.ops = {}
32 self.prev = {}
33 self.insertInput(p)
34 self.visited = False
35 self.op = op
36
37 def insertInput(self, p):
38 """

Callers

nothing calls this directly

Calls 1

insertInputMethod · 0.95

Tested by

no test coverage detected