MCPcopy Index your code
hub / github.com/apache/tvm / __add__

Method __add__

python/tvm/relax/expr.py:157–161  ·  view source on GitHub ↗
(self, other: Expr)

Source from the content-addressed store, hash-verified

155 # NOTE: Cannot override __eq__ and __ne__, which will influence object equal
156
157 def __add__(self, other: Expr) -> "ExprWithOp":
158 if isinstance(self.struct_info_, tvm.relax.TupleStructInfo) and isinstance(other, tuple):
159 return tuple([*self, *other])
160
161 return _binary_op_helper(self, other, _op_ffi_api.add) # type: ignore
162
163 def __radd__(self, other: Expr) -> "ExprWithOp":
164 return self.__add__(other)

Callers 1

__radd__Method · 0.95

Calls 2

tupleFunction · 0.85
_binary_op_helperFunction · 0.85

Tested by

no test coverage detected