संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: स्ट्रिंग लंबाई:: Attrs
#include <string_ops.h>
StringLength के लिए वैकल्पिक विशेषता सेटर्स।
सारांश
सार्वजनिक गुण |
---|
unit_ = "BYTE" | StringPiece |
सार्वजनिक समारोह |
---|
Unit (StringPiece x) | वह इकाई जिसे स्ट्रिंग की लंबाई की गणना करने के लिए गिना जाता है। |
सार्वजनिक गुण
इकाई_
StringPiece tensorflow::ops::StringLength::Attrs::unit_ = "BYTE"
सार्वजनिक समारोह
इकाई
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringLength::Attrs::Unit(
StringPiece x
)
वह इकाई जिसे स्ट्रिंग की लंबाई की गणना करने के लिए गिना जाता है।
इनमें से एक: "BYTE"
(प्रत्येक स्ट्रिंग में बाइट्स की संख्या के लिए) या "UTF8_CHAR"
(प्रत्येक स्ट्रिंग में UTF-8 एन्कोडेड यूनिकोड कोड बिंदुओं की संख्या के लिए)। यदि unit=UTF8_CHAR
और input
स्ट्रिंग में संरचनात्मक रूप से मान्य UTF-8 नहीं है, तो परिणाम अपरिभाषित हैं।
डिफ़ॉल्ट रूप से "BYTE"
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::StringLength::Attrs Struct Reference\n\ntensorflow::ops::StringLength::Attrs\n====================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [StringLength](/versions/r2.0/api_docs/cc/class/tensorflow/ops/string-length#classtensorflow_1_1ops_1_1_string_length).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|---------------|\n| [unit_](#structtensorflow_1_1ops_1_1_string_length_1_1_attrs_1a20ddf74f682ff45eee049cef9c6ebab1)` = \"BYTE\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](#structtensorflow_1_1ops_1_1_string_length_1_1_attrs_1ac8d16dcfea721edfcf1fe9ecd4db17d9)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/string-length/attrs#structtensorflow_1_1ops_1_1_string_length_1_1_attrs) The unit that is counted to compute string length. |\n\nPublic attributes\n-----------------\n\n### unit_\n\n```scdoc\nStringPiece tensorflow::ops::StringLength::Attrs::unit_ = \"BYTE\"\n``` \n\nPublic functions\n----------------\n\n### Unit\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::StringLength::Attrs::Unit(\n StringPiece x\n)\n``` \nThe unit that is counted to compute string length.\n\nOne of: `\"BYTE\"` (for the number of bytes in each string) or `\"UTF8_CHAR\"` (for the number of UTF-8 encoded Unicode code points in each string). Results are undefined if `unit=UTF8_CHAR` and the `input` strings do not contain structurally valid UTF-8.\n\nDefaults to \"BYTE\""]]