# tensorflow::ops::SerializeSparse::Attrs Struct Reference

# tensorflow::
ops::
SerializeSparse::
Attrs

`
#include <sparse_ops.h>
`


Optional attribute setters for
[SerializeSparse](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/serialize-sparse#classtensorflow_1_1ops_1_1_serialize_sparse)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/serialize-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_sparse_1_1_attrs_1ab088346154d2e50e3b6e376f32993817 = DT_STRING ` | ` DataType ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/serialize-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_sparse_1_1_attrs_1a1f8e34079a2ca362dad40166651acadf (DataType x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/serialize-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_sparse_1_1_attrs ` The ` dtype ` to use for serialization; the supported types are ` string ` (default) and ` variant ` . |

## Public attributes

### out_type_

```
DataType tensorflow::ops::SerializeSparse::Attrs::out_type_ = DT_STRING
```

## Public functions

### OutType

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::SerializeSparse::Attrs::OutType(
  DataType x
)
```

The
`
dtype
`
to use for serialization; the supported types are
`
string
`
(default) and
`
variant
`
.


Defaults to DT_STRING