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

Method GetBlobRef

caffe2/python/core.py:1689–1698  ·  view source on GitHub ↗

Given the name of a blob produced by this net, return a BlobReference to it. If the blob is not produced by any op in this net, raises KeyError.

(self, blob_name)

Source from the content-addressed store, hash-verified

1687 return blob_names
1688
1689 def GetBlobRef(self, blob_name):
1690 """
1691 Given the name of a blob produced by this net, return a BlobReference
1692 to it. If the blob is not produced by any op in this net,
1693 raises KeyError.
1694 """
1695 blob_name = str(blob_name)
1696 if not self.BlobIsDefined(blob_name):
1697 raise KeyError('Net does not define blob %s' % blob_name)
1698 return BlobReference(blob_name, self)
1699
1700 def Clone(
1701 self,

Callers 3

ClonePartialMethod · 0.80
build_lrMethod · 0.80
BuildUniqueMutexIterFunction · 0.80

Calls 2

BlobIsDefinedMethod · 0.95
BlobReferenceClass · 0.85

Tested by

no test coverage detected