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

Method deleteInput

caffe2/experiments/python/SparseTransformer.py:51–54  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

49 p.ops[self.name] = self
50
51 def deleteInput(self, p):
52 if isinstance(p, NetDefNode):
53 del self.prev[p.name]
54 del p.ops[self.name]
55
56
57def maskNallocate(weight_name):

Callers 1

transFCReluFunction · 0.80

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected