संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: रस्सी जैसी:: Attrs
#include <string_ops.h>
AsString के लिए वैकल्पिक विशेषता सेटर्स।
सारांश
सार्वजनिक समारोह |
---|
Fill (StringPiece x) | यदि चौड़ाई > -1 हो तो पैड का मान। |
Precision (int64 x) | फ़्लोटिंग पॉइंट संख्याओं के लिए उपयोग की जाने वाली दशमलवोत्तर परिशुद्धता। |
Scientific (bool x) | फ़्लोटिंग पॉइंट संख्याओं के लिए वैज्ञानिक संकेतन का उपयोग करें। |
Shortest (bool x) | फ़्लोटिंग पॉइंट संख्याओं के लिए सबसे छोटे प्रतिनिधित्व (या तो वैज्ञानिक या मानक) का उपयोग करें। |
Width (int64 x) | इस चौड़ाई में पूर्व-दशमलव संख्याएँ पैड करें । |
सार्वजनिक गुण
भरना_
StringPiece tensorflow::ops::AsString::Attrs::fill_ = ""
शुद्धता_
int64 tensorflow::ops::AsString::Attrs::precision_ = -1
वैज्ञानिक_
bool tensorflow::ops::AsString::Attrs::scientific_ = false
सबसे छोटा_
bool tensorflow::ops::AsString::Attrs::shortest_ = false
चौड़ाई_
int64 tensorflow::ops::AsString::Attrs::width_ = -1
सार्वजनिक समारोह
भरना
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Fill(
StringPiece x
)
यदि चौड़ाई > -1 हो तो पैड का मान।
यदि खाली हो, तो रिक्त स्थान वाले पैड। एक अन्य विशिष्ट मान '0' है। स्ट्रिंग 1 वर्ण से अधिक लंबी नहीं हो सकती.
डिफ़ॉल्ट रूप से ""
शुद्धता
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Precision(
int64 x
)
फ़्लोटिंग पॉइंट संख्याओं के लिए उपयोग की जाने वाली दशमलवोत्तर परिशुद्धता।
केवल तभी उपयोग किया जाता है यदि परिशुद्धता > -1 हो।
-1 पर डिफ़ॉल्ट
वैज्ञानिक
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Scientific(
bool x
)
फ़्लोटिंग पॉइंट संख्याओं के लिए वैज्ञानिक संकेतन का उपयोग करें।
डिफ़ॉल्ट से असत्य
कम से कम
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Shortest(
bool x
)
फ़्लोटिंग पॉइंट संख्याओं के लिए सबसे छोटे प्रतिनिधित्व (या तो वैज्ञानिक या मानक) का उपयोग करें।
डिफ़ॉल्ट से असत्य
चौड़ाई
TF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Width(
int64 x
)
इस चौड़ाई में पूर्व-दशमलव संख्याएँ पैड करें ।
फ़्लोटिंग पॉइंट और पूर्णांक संख्याओं दोनों पर लागू होता है। केवल तभी उपयोग किया जाता है जब चौड़ाई > -1 हो।
-1 पर डिफ़ॉल्ट
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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::Attrs Struct Reference\n\ntensorflow::ops::AsString::Attrs\n================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [AsString](/versions/r2.1/api_docs/cc/class/tensorflow/ops/as-string#classtensorflow_1_1ops_1_1_as_string).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------|---------------|\n| [fill_](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1a8bf611bad8c7bd4345908dbc3cd21786)` = \"\"` | `StringPiece` |\n| [precision_](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1a30c509542b89243670993b5347796d9a)` = -1` | `int64` |\n| [scientific_](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1af02389c5b254a51ada2c93cf41be40f6)` = false` | `bool` |\n| [shortest_](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1ae2b98a6a89a8b72580585a25a84535bb)` = false` | `bool` |\n| [width_](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1a3851aec9e144cb466b18571b6fc39541)` = -1` | `int64` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Fill](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1accfa54faa153ce4b5e8dff7a8c8e63f8)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) The value to pad if width \\\u003e -1. |\n| [Precision](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1af2acaa70b9fad5b80d21a664a453bcaa)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) The post-decimal precision to use for floating point numbers. |\n| [Scientific](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1a119604909bb32fc0da005d1f55757f55)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) Use scientific notation for floating point numbers. |\n| [Shortest](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1a7b38858066b92833780462277b3b6047)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) Use shortest representation (either scientific or standard) for floating point numbers. |\n| [Width](#structtensorflow_1_1ops_1_1_as_string_1_1_attrs_1af57583d51da956bc8128f61f1d08a284)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/as-string/attrs#structtensorflow_1_1ops_1_1_as_string_1_1_attrs) [Pad](/versions/r2.1/api_docs/cc/class/tensorflow/ops/pad#classtensorflow_1_1ops_1_1_pad) pre-decimal numbers to this width. |\n\nPublic attributes\n-----------------\n\n### fill_\n\n```scdoc\nStringPiece tensorflow::ops::AsString::Attrs::fill_ = \"\"\n``` \n\n### precision_\n\n```scdoc\nint64 tensorflow::ops::AsString::Attrs::precision_ = -1\n``` \n\n### scientific_\n\n```scdoc\nbool tensorflow::ops::AsString::Attrs::scientific_ = false\n``` \n\n### shortest_\n\n```scdoc\nbool tensorflow::ops::AsString::Attrs::shortest_ = false\n``` \n\n### width_\n\n```scdoc\nint64 tensorflow::ops::AsString::Attrs::width_ = -1\n``` \n\nPublic functions\n----------------\n\n### Fill\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Fill(\n StringPiece x\n)\n``` \nThe value to pad if width \\\u003e -1.\n\nIf empty, pads with spaces. Another typical value is '0'. String cannot be longer than 1 character.\n\nDefaults to \"\" \n\n### Precision\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Precision(\n int64 x\n)\n``` \nThe post-decimal precision to use for floating point numbers.\n\nOnly used if precision \\\u003e -1.\n\nDefaults to -1 \n\n### Scientific\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Scientific(\n bool x\n)\n``` \nUse scientific notation for floating point numbers.\n\nDefaults to false \n\n### Shortest\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Shortest(\n bool x\n)\n``` \nUse shortest representation (either scientific or standard) for floating point numbers.\n\nDefaults to false \n\n### Width\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::AsString::Attrs::Width(\n int64 x\n)\n``` \n[Pad](/versions/r2.1/api_docs/cc/class/tensorflow/ops/pad#classtensorflow_1_1ops_1_1_pad) pre-decimal numbers to this width.\n\nApplies to both floating point and integer numbers. Only used if width \\\u003e -1.\n\nDefaults to -1"]]