INNER CODE UNIT · Python
sparse_add
HIPS/autograd · autograd/core.py:213
def sparse_add(vs, x_prev, x_new):
x_prev = x_prev if x_prev is not None else vs.zeros()
return x_new.mut_add(x_prev)
class VSpace:
__slots__ = []
mappings: ClassVar[dict] = {}
iscomplex = False
def __init__(self, value):
pass
def zeros(self):
assert False, repr(self)
def ones(self):
assert False, repr(self)