संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: डिकोडजेएसओएनउदाहरण
#include <parsing_ops.h>
JSON-एन्कोडेड उदाहरण रिकॉर्ड को बाइनरी प्रोटोकॉल बफ़र स्ट्रिंग में कनवर्ट करें।
सारांश
यह ऑप मानक JSON मैपिंग का उपयोग करके एन्कोड किए गए उदाहरण रिकॉर्ड वाले एक टेंसर का अनुवाद करता है, जिसमें बाइनरी प्रोटोकॉल बफ़र्स के रूप में एन्कोड किए गए समान रिकॉर्ड होते हैं। परिणामी टेंसर को फिर किसी अन्य उदाहरण-पार्सिंग ऑप्स में फीड किया जा सकता है।
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- json_examples: प्रत्येक स्ट्रिंग एक JSON ऑब्जेक्ट है जो उदाहरण प्रोटो के JSON मैपिंग के अनुसार क्रमबद्ध है।
रिटर्न:
-
Output
: प्रत्येक स्ट्रिंग json_examples
के संबंधित तत्व के अनुरूप एक बाइनरी उदाहरण प्रोटोकॉल बफर है।
सार्वजनिक गुण
सार्वजनिक समारोह
नोड
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ऑपरेटर::टेन्सरफ़्लो::आउटपुट
operator::tensorflow::Output() const
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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::DecodeJSONExample Class Reference\n\ntensorflow::ops::DecodeJSONExample\n==================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nConvert JSON-encoded Example records to binary protocol buffer strings.\n\nSummary\n-------\n\nThis op translates a tensor containing Example records, encoded using the [standard JSON mapping](https://developers.google.com/protocol-buffers/docs/proto3#json), into a tensor containing the same records encoded as binary protocol buffers. The resulting tensor can then be fed to any of the other Example-parsing ops.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- json_examples: Each string is a JSON object serialized according to the JSON mapping of the Example proto.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Each string is a binary Example protocol buffer corresponding to the respective element of `json_examples`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodeJSONExample](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1a5175fd5db2a3e172a06516fec3850efc)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` json_examples)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [binary_examples](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1ac6b3c22f94a224fac5ebd77479234283) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1aa94b74db4f2eca6c04a386e5c8174a04) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1a92b8985bc289f541f6e6b6c22385977d)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1acc4b898745eafcad0baf530183ec33c8)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_j_s_o_n_example_1afc1fcbf55494127f3107e7901ebec32a)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### binary_examples\n\n```scdoc\n::tensorflow::Output binary_examples\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### DecodeJSONExample\n\n```gdscript\n DecodeJSONExample(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input json_examples\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```"]]