# tf.raw_ops.Placeholder

<br />

A placeholder op for a value that will be fed into the computation.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.Placeholder(
        dtype, shape=None, name=None
    )

N.B. This operation will fail with an error if it is executed. It is
intended as a way to represent a value that will always be fed, and to
provide attrs that enable the fed value to be checked at runtime.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dtype` | A [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType). The type of elements in the tensor. |
| `shape` | An optional [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/TensorShape) or list of `ints`. Defaults to `None`. (Optional) The shape of the tensor. If the shape has 0 dimensions, the shape is unconstrained. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `dtype`. ||

<br />