Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
тензорный поток:: опс:: ДекодированиеPng:: Атрибуты
#include <image_ops.h>
Дополнительные установщики атрибутов для DecodePng .
Краткое содержание
Общественные функции |
---|
Channels (int64 x) | Количество цветовых каналов для декодированного изображения. |
Dtype (DataType x) | По умолчанию DT_UINT8. |
Публичные атрибуты
каналы_
int64 tensorflow::ops::DecodePng::Attrs::channels_ = 0
dtype_
DataType tensorflow::ops::DecodePng::Attrs::dtype_ = DT_UINT8
Общественные функции
Каналы
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Channels(
int64 x
)
Количество цветовых каналов для декодированного изображения.
По умолчанию 0
Дтип
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Dtype(
DataType x
)
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 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."]]