# tf.raw_ops.PlaceholderWithDefault

<br />

A placeholder op that passes through `input` when its output is not fed.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.PlaceholderWithDefault`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/PlaceholderWithDefault)

<br />

    tf.raw_ops.PlaceholderWithDefault(
        input, shape, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A `Tensor`. The default value to produce when `output` is not fed. |
| `shape` | A [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/TensorShape) or list of `ints`. The (possibly partial) shape of the tensor. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `input`. ||

<br />