imag

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

Returns the element-wise imaginary part.

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

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

Returns

The element-wise imaginary part \(\mathop{\mathrm{Im}}(x)\).

Return type

Tensor