MCPcopy Index your code
hub / github.com/pytorch/pytorch / __add__

Method __add__

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

Source from the content-addressed store, hash-verified

249 return 'BlobReference("{}")'.format(self._name)
250
251 def __add__(self, other):
252 if not isinstance(other, str):
253 raise RuntimeError('Cannot add BlobReference to a non-string.')
254 return BlobReference(self._name + other, self._from_net)
255
256 def __radd__(self, other):
257 if not isinstance(other, str):

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
BlobReferenceClass · 0.85

Tested by

no test coverage detected