function imag_(input) {
    const $input = convertToTensor(input, 'input', 'imag');
    const forward = (backend) => {
        return backend.imag($input);
    };
    const inputs = { input: $input };
    return ENGINE.runKernelFunc(forward, inputs, null /* gradient */, Imag);
}
/**
 * Returns the imaginary part of a complex (or real) tensor.
 *
 * Given a tensor input, this operation returns a tensor of type float that is
 * the imaginary part of each element in input considered as a complex number.
 * If input is real, a tensor of all zeros is returned.
 *
 * ```js
 * const x = tf.complex([-2.25, 3.25], [4.75, 5.75]);
 * tf.imag(x).print();
 * ```
 *
 * @doc {heading: 'Tensors', subheading: 'Creation'}
 */
Returns the imaginary part of a complex (or real) tensor.
Given a tensor input, this operation returns a tensor of type float that is
the imaginary part of each element in input considered as a complex number.
If input is real, a tensor of all zeros is returned.



@doc {heading: 'Tensors', subheading: 'Creation'}
Returns the imaginary part of a complex ( or real ) tensor . Given a tensor input this operation returns a tensor of type float that is the imaginary part of each element in input considered as a complex number . If input is real a tensor of all zeros is returned . @doc { heading : ' Tensors ' subheading : ' Creation ' }
function imag_(input) {
    const $input = convertToTensor(input, 'input', 'imag');
    const forward = (backend) => {
        return backend.imag($input);
    };
    const inputs = { input: $input };
    return ENGINE.runKernelFunc(forward, inputs, null , Imag);
}
function imag_ ( input ) { const $input = convertToTensor ( input , 'input' , 'imag' ) ; const forward = ( backend ) => { return backend . imag ( $input ) ; } ; const inputs = { input : $input } ; return ENGINE . runKernelFunc ( forward , inputs , null , Imag ) ; }
Returns the imaginary part of a complex (or real) tensor.
Returns the imaginary part of a complex ( or real ) tensor .
/* gradient */