संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: रस्सी जैसी
#include <string_ops.h>
दिए गए टेंसर में प्रत्येक प्रविष्टि को स्ट्रिंग में परिवर्तित करता है।
सारांश
कई संख्यात्मक प्रकार और बूलियन का समर्थन करता है।
यूनिकोड के लिए, [ https://www.tensorflow.org/tutorials/repretation/unicode ](यूनिकोड टेक्स्ट के साथ काम करना) ट्यूटोरियल देखें।
तर्क:
वैकल्पिक विशेषताएँ (देखें Attrs
):
- परिशुद्धता: फ़्लोटिंग पॉइंट संख्याओं के लिए उपयोग की जाने वाली दशमलवोत्तर परिशुद्धता। केवल तभी उपयोग किया जाता है यदि परिशुद्धता > -1 हो।
- वैज्ञानिक: फ़्लोटिंग पॉइंट संख्याओं के लिए वैज्ञानिक संकेतन का उपयोग करें।
- सबसे छोटा: फ़्लोटिंग पॉइंट संख्याओं के लिए सबसे छोटे प्रतिनिधित्व (या तो वैज्ञानिक या मानक) का उपयोग करें।
- चौड़ाई: पूर्व-दशमलव संख्याओं को इस चौड़ाई पर पैड करें । फ़्लोटिंग पॉइंट और पूर्णांक संख्याओं दोनों पर लागू होता है। केवल तभी उपयोग किया जाता है जब चौड़ाई > -1 हो।
- भरें: यदि चौड़ाई > -1 हो तो पैड का मान। यदि खाली हो, तो रिक्त स्थान वाले पैड। एक अन्य विशिष्ट मान '0' है। स्ट्रिंग 1 वर्ण से अधिक लंबी नहीं हो सकती.
रिटर्न:
सार्वजनिक गुण
सार्वजनिक समारोह
नोड
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ऑपरेटर::टेन्सरफ़्लो::आउटपुट
operator::tensorflow::Output() const
सार्वजनिक स्थैतिक कार्य
भरना
Attrs Fill(
StringPiece x
)
शुद्धता
Attrs Precision(
int64 x
)
वैज्ञानिक
Attrs Scientific(
bool x
)
कम से कम
Attrs Shortest(
bool x
)
चौड़ाई
Attrs Width(
int64 x
)
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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::AsString Class Reference\n\ntensorflow::ops::AsString\n=========================\n\n`#include \u003cstring_ops.h\u003e`\n\nConverts each entry in the given tensor to strings.\n\nSummary\n-------\n\nSupports many numeric types and boolean.\n\nFor Unicode, see the \\[\u003chttps://www.tensorflow.org/tutorials/representation/unicode\u003e\\](Working with Unicode text) tutorial.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs)):\n\n- precision: The post-decimal precision to use for floating point numbers. Only used if precision \\\u003e -1.\n- scientific: Use scientific notation for floating point numbers.\n- shortest: Use shortest representation (either scientific or standard) for floating point numbers.\n- width: [Pad](/versions/r1.15/api_docs/cc/class/tensorflow/ops/pad#classtensorflow_1_1ops_1_1_pad) pre-decimal numbers to this width. Applies to both floating point and integer numbers. Only used if width \\\u003e -1.\n- fill: The value to pad if width \\\u003e -1. If empty, pads with spaces. Another typical value is '0'. String cannot be longer than 1 character.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AsString](#classtensorflow_1_1ops_1_1_as_string_1a93703cfbec4867fde47aa2259770786d)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [AsString](#classtensorflow_1_1ops_1_1_as_string_1a48e83706cffb25050240d9ae8e2d84e4)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[AsString::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_as_string_1a4f40ee7fcae884138385d66946669132) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_as_string_1afd5f84ceab758a320b25af91eb1614ff) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_as_string_1abb163457f3457bfe14dd5192aeced5c5)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_as_string_1a25d4641309fe3d0f801105ad0b3027be)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_as_string_1a0b6fa38b640976c2d6651a9a96ae9fec)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [Fill](#classtensorflow_1_1ops_1_1_as_string_1ac3d8aab67abdc6322377e5d914aa3124)`(StringPiece x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) |\n| [Precision](#classtensorflow_1_1ops_1_1_as_string_1aa3a1688f03e1afc119452b92d96054ff)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) |\n| [Scientific](#classtensorflow_1_1ops_1_1_as_string_1a258997efffeb32c7733aaeef5f6b3614)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) |\n| [Shortest](#classtensorflow_1_1ops_1_1_as_string_1acfa9078d608f2939a48684fbf6607558)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) |\n| [Width](#classtensorflow_1_1ops_1_1_as_string_1a5c6d3289fae480ee2909b51f14351bf5)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::AsString::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/as-string/attrs) | Optional attribute setters for [AsString](/versions/r1.15/api_docs/cc/class/tensorflow/ops/as-string#classtensorflow_1_1ops_1_1_as_string). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### AsString\n\n```gdscript\n AsString(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### AsString\n\n```gdscript\n AsString(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const AsString::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Fill\n\n```text\nAttrs Fill(\n StringPiece x\n)\n``` \n\n### Precision\n\n```text\nAttrs Precision(\n int64 x\n)\n``` \n\n### Scientific\n\n```text\nAttrs Scientific(\n bool x\n)\n``` \n\n### Shortest\n\n```text\nAttrs Shortest(\n bool x\n)\n``` \n\n### Width\n\n```text\nAttrs Width(\n int64 x\n)\n```"]]