<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/operation_utils.py#L466-L498) |

Returns the list of input tensors necessary to compute `tensor`.

    tf.keras.utils.get_source_inputs(
        tensor
    )

Output will always be a list of tensors
(potentially with 1 element).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | The tensor to start from. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| List of input tensors. ||

<br />