จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ตัวอย่างการถอดรหัส JSON
#include <parsing_ops.h>
แปลงบันทึกตัวอย่างที่เข้ารหัส JSON เป็นสตริงบัฟเฟอร์โปรโตคอลไบนารี
สรุป
op นี้แปลเทนเซอร์ที่มีบันทึกตัวอย่าง ซึ่งเข้ารหัสโดยใช้ การแมป JSON มาตรฐาน เป็นเทนเซอร์ที่มีบันทึกเดียวกันกับที่เข้ารหัสเป็นบัฟเฟอร์โปรโตคอลไบนารี จากนั้นเทนเซอร์ที่ได้จะถูกป้อนให้กับการดำเนินการแยกวิเคราะห์ตัวอย่างอื่นๆ
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- json_examples: แต่ละสตริงเป็นอ็อบเจ็กต์ JSON ที่ทำให้เป็นอนุกรมตามการแมป JSON ของโปรโตตัวอย่าง
ผลตอบแทน:
-
Output
: แต่ละสตริงเป็นบัฟเฟอร์โปรโตคอลตัวอย่างไบนารีที่สอดคล้องกับองค์ประกอบที่เกี่ยวข้องของ json_examples
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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.1/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.1/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.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/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.1/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.1/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```"]]