جریان تنسور:: عملیات:: رمزگشایی Png:: Attrs
#include <image_ops.h>
تنظیم کننده های ویژگی اختیاری برای DecodePng .
خلاصه
صفات عمومی | |
---|---|
channels_ = 0 | int64 |
dtype_ = DT_UINT8 | DataType |
توابع عمومی | |
---|---|
Channels (int64 x) | TF_MUST_USE_RESULT Attrs تعداد کانال های رنگی برای تصویر رمزگشایی شده |
Dtype (DataType x) | TF_MUST_USE_RESULT Attrs پیشفرض 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 است
نوع D
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodePng::Attrs::Dtype( DataType x )
پیشفرض DT_UINT8 است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]