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

Method __radd__

caffe2/python/core.py:256–259  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

254 return BlobReference(self._name + other, self._from_net)
255
256 def __radd__(self, other):
257 if not isinstance(other, str):
258 raise RuntimeError('Cannot add a non-string to BlobReference.')
259 return BlobReference(other + self._name, self._from_net)
260
261 def Net(self):
262 return self._from_net

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
BlobReferenceClass · 0.85

Tested by

no test coverage detected