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

Method need_blob

caffe2/python/net_printer.py:76–79  ·  view source on GitHub ↗
(self, blob)

Source from the content-addressed store, hash-verified

74 self.workspace[blob] += 1
75
76 def need_blob(self, blob):
77 if any(blob.startswith(p) for p in Analyzer.PREFIXES_TO_IGNORE):
78 return
79 assert blob in self.workspace, 'Blob undefined: %s' % blob
80
81
82@Analyzer.register(OperatorDef)

Callers 2

analyze_opFunction · 0.80
analyze_stepFunction · 0.80

Calls 1

anyFunction · 0.50

Tested by

no test coverage detected