# tensorflow::ops::StringFormat Class Reference

# tensorflow::
ops::
StringFormat

`
#include <string_ops.h>
`


Formats a string template using a list of tensors.

## Summary


Formats a string template using a list of tensors, pretty-printing tensor summaries.


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- inputs: The list of tensors to format into the placeholder string.

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs
`
):

- template_: A string, the template to format tensor summaries into.
- placeholder: A string, at each placeholder in the template a subsequent tensor summary will be inserted.
- summarize: When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : = The resulting string scalar.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a2a49e6e78ef8bc53f1c131f57472c80f (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list inputs) ` ||
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1aa206a8f6062c185cd4054ea9c3eae135 (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list inputs, const https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a79b84b00b14555109e9d022ed1d18247 ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1ad804e61daa8ee29a7589034620bc6957 ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a17f33c98eb82880a699b4fd280414866 () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a18c365d68dd132b199860fd218352055 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a09f95b504d354326ed3bf116fefce058 () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1a5bbe893329638ba81c31a259ff88b059 (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1af1d26efd4527e1af585402a951364b86 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format_1ac90801110cd85e5c9cdee2b025a7284b (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: StringFormat:: Attrs](https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/string-format/attrs) | Optional attribute setters for [StringFormat](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format) . |

## Public attributes

### operation

```
Operation operation
```

### output

```
::tensorflow::Output output
```

## Public functions

### StringFormat

```
 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)
```

### StringFormat

```
 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs,
  const StringFormat::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### Placeholder

```
Attrs Placeholder(
  StringPiece x
)
```

### Summarize

```
Attrs Summarize(
  int64 x
)
```

### Template

```
Attrs Template(
  StringPiece x
)
```