# tensorflow::ops::DecodePng::Attrs Struct Reference

# tensorflow::
ops::
DecodePng::
Attrs

`
#include <image_ops.h>
`


Optional attribute setters for
[DecodePng](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/decode-png#classtensorflow_1_1ops_1_1_decode_png)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a296bee037590187a3fa206943066ee6d = 0 ` | ` int64 ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1aafa6582904e4e041c6f7310f5e803457 = DT_UINT8 ` | ` DataType ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a1cc5701d219d1fc703182a7f5e7f3123 (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs ` Number of color channels for the decoded image. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a1b6ba5a08baab6e53804e735a6f0f544 (DataType x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs ` Defaults to DT_UINT8. |

## Public attributes

### channels_

```
int64 tensorflow::ops::DecodePng::Attrs::channels_ = 0
```

### dtype_

```
DataType tensorflow::ops::DecodePng::Attrs::dtype_ = DT_UINT8
```

## Public functions

### Channels

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Channels(
  int64 x
)
```

Number of color channels for the decoded image.


Defaults to 0

### Dtype

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Dtype(
  DataType x
)
```

Defaults to DT_UINT8.