संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: डिकोडपीएनजी:: Attrs
#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 Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]