• Returns the real part of a complex (or real) tensor.

    Given a tensor input, this operation returns a tensor of type float that is the real part of each element in input considered as a complex number.

    If the input is real, it simply makes a clone.

    const x = tf.complex([-2.25, 3.25], [4.75, 5.75]);
    tf.real(x).print();

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc