# tensorflow::ops::StringFormat::Attrs Struct Reference

# tensorflow::ops::StringFormat::Attrs

`#include <string_ops.h>`

Optional attribute setters for [StringFormat](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1ae154169fdc319721c6265fd1564fa6c5 = "%s"` | `StringPiece` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a4ac645e6fc8777047aab38b524b9b1bf = 3` | `int64` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a49784b093dfa331fba507913ac889721 = "%s"` | `StringPiece` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a429fe5e592abbc155c1f6f5a7a8570ce(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs` A string, at each placeholder in the template a subsequent tensor summary will be inserted. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1aba0615598d71a58eb226fe2553559e94(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs` When formatting the tensor summaries print the first and last summarize entries of each tensor dimension. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a928ee0aff5ef8fa9e14e0410bf96afac(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs` A string, the template to format tensor summaries into. |

## Public attributes

### placeholder_

```
StringPiece tensorflow::ops::StringFormat::Attrs::placeholder_ = "%s"
```

### summarize_

```
int64 tensorflow::ops::StringFormat::Attrs::summarize_ = 3
```

### template_

```
StringPiece tensorflow::ops::StringFormat::Attrs::template_ = "%s"
```

## Public functions

### Placeholder

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Placeholder(
  StringPiece x
)
```
A string, at each placeholder in the template a subsequent tensor summary will be inserted.

Defaults to "%s"

### Summarize

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Summarize(
  int64 x
)
```
When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.

Defaults to 3

### Template

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Template(
  StringPiece x
)
```
A string, the template to format tensor summaries into.

Defaults to "%s"