add

static OperationNamespace.add(x, y, *, name=None)

Adds two values element-wise.

Parameters
  • x (number or np.ndarray or Tensor) – The left summand, \(x\).

  • y (number or np.ndarray or Tensor) – The right summand, \(y\).

  • name (str, optional) – The name of the node.

Returns

The element-wise value of \(x+y\).

Return type

Tensor