<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/numpy.py#L4523-L4545) |

Multiply `x1` by 2 raised to the power of `x2`, element-wise.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.ldexp`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/ldexp)

<br />

    tf.keras.ops.ldexp(
        x1, x2
    )

This function computes:
ldexp(x1, x2) = x1 \* 2\*\*x2

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x1` | Float input tensor. |
| `x2` | Integer exponent tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor ||

<br />

#### Example:

    x1 = keras.ops.convert_to_tensor([0.75, 1.5])
    x2 = keras.ops.convert_to_tensor([1, 2])
    keras.ops.ldexp(x1, x2)
    array([1.5, 6. ], dtype=float32)