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

Method BlobIsDefined

caffe2/python/core.py:1653–1661  ·  view source on GitHub ↗

Returns true if the given BlobReference is produced as output of an operator in this net, or if it is provided as an external input.

(self, blob)

Source from the content-addressed store, hash-verified

1651 return do_set(self.GivenTensorFill)
1652
1653 def BlobIsDefined(self, blob):
1654 """
1655 Returns true if the given BlobReference is produced as output of
1656 an operator in this net, or if it is provided as an external input.
1657 """
1658 if self._recreate_lookup_tables:
1659 self._RecreateLookupTables()
1660 name = str(blob)
1661 return (name in self._op_outputs) or (name in self._external_input_map)
1662
1663 def UsesBlob(self, blob):
1664 """

Callers 15

GetBlobRefMethod · 0.95
ClonePartialMethod · 0.95
NextBlobMethod · 0.95
NextNameMethod · 0.95
AddExternalOutputMethod · 0.95
set_output_recordMethod · 0.95
_CreateAndAddToSelfMethod · 0.95
InjectCrossDeviceCopiesFunction · 0.80
build_lrMethod · 0.80

Calls 1

_RecreateLookupTablesMethod · 0.95

Tested by 2