autodiff.reverse.Node.__add__

Node.__add__(other)

Return the sum of self and other.

Parameters
selfNode
otherint, float, Node
Returns
outNode

Examples

Node and scalar:

>>> ad.Node(42) + 5
Node(47)

Two nodes:

>>> ad.Node(42) + ad.Node(1)
Node(43)
>>> ad.Node(42) + ad.Node.constant(1)
Node(43)