Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::DecodePng::Attrs
#include <image_ops.h>
Optional attribute setters for DecodePng.
Summary
Public functions
|
Channels(int64 x)
|
Number of color channels for the decoded image.
|
Dtype(DataType x)
|
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
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::DecodePng::Attrs Struct Reference\n\ntensorflow::ops::DecodePng::Attrs\n=================================\n\n`#include \u003cimage_ops.h\u003e`\n\nOptional attribute setters for [DecodePng](/versions/r1.15/api_docs/cc/class/tensorflow/ops/decode-png#classtensorflow_1_1ops_1_1_decode_png).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|------------|\n| [channels_](#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a296bee037590187a3fa206943066ee6d)` = 0` | `int64` |\n| [dtype_](#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1aafa6582904e4e041c6f7310f5e803457)` = DT_UINT8` | `DataType` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Channels](#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a1cc5701d219d1fc703182a7f5e7f3123)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/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. |\n| [Dtype](#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs_1a1b6ba5a08baab6e53804e735a6f0f544)`(DataType x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-png/attrs#structtensorflow_1_1ops_1_1_decode_png_1_1_attrs) Defaults to DT_UINT8. |\n\nPublic attributes\n-----------------\n\n### channels_\n\n```scdoc\nint64 tensorflow::ops::DecodePng::Attrs::channels_ = 0\n``` \n\n### dtype_\n\n```carbon\nDataType tensorflow::ops::DecodePng::Attrs::dtype_ = DT_UINT8\n``` \n\nPublic functions\n----------------\n\n### Channels\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Channels(\n int64 x\n)\n``` \nNumber of color channels for the decoded image.\n\nDefaults to 0 \n\n### Dtype\n\n```carbon\nTF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Dtype(\n DataType x\n)\n``` \nDefaults to DT_UINT8."]]