real

static OperationNamespace.real(input, *, name=None)

Returns the element-wise real part.

Parameters
  • input (number or np.ndarray or Tensor) – The value, \(x\).

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

Returns

The element-wise real part \(\mathop{\mathrm{Re}}(x)\).

Return type

Tensor