# tensorflow::ops::Placeholder::Attrs

`#include <array_ops.h>`

Optional attribute setters for [Placeholder](https://www.tensorflow.org/versions/r2.12/api_docs/cc/class/tensorflow/ops/placeholder#classtensorflow_1_1ops_1_1_placeholder).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs_1a6a6c519ecc364678035bee0c2e15fd62 = ::tensorflow::PartialTensorShape()` | `PartialTensorShape` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs_1a231b90321d75fb62c9c3e71fc94536d7(PartialTensorShape x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.12/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs` (Optional) The shape of the tensor. |

## Public attributes

### shape_

```
PartialTensorShape tensorflow::ops::Placeholder::Attrs::shape_ = ::tensorflow::PartialTensorShape()
```

## Public functions

### Shape

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Placeholder::Attrs::Shape(
  PartialTensorShape x
)
```
(Optional) The shape of the tensor.

If the shape has 0 dimensions, the shape is unconstrained.

Defaults to