จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: พิมพ์V2
#include <logging_ops.h>
พิมพ์สเกลาร์สตริง
สรุป
พิมพ์สเกลาร์สตริงไปยัง output_stream ที่ต้องการ
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- input: สเกลาร์สตริงที่จะพิมพ์
แอ็ตทริบิวต์ทางเลือก (ดู Attrs
):
- output_stream: สตริงที่ระบุสตรีมเอาต์พุตหรือระดับการบันทึกที่จะพิมพ์
ผลตอบแทน:
คุณลักษณะสาธารณะ
งานสาธารณะ
ตัวดำเนินการ::เทนเซอร์โฟลว์::การทำงาน
operator::tensorflow::Operation() const
ฟังก์ชันคงที่สาธารณะ
จบ
Attrs End(
StringPiece x
)
เอาท์พุตสตรีม
Attrs OutputStream(
StringPiece x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# tensorflow::ops::PrintV2 Class Reference\n\ntensorflow::ops::PrintV2\n========================\n\n`#include \u003clogging_ops.h\u003e`\n\nPrints a string scalar.\n\nSummary\n-------\n\nPrints a string scalar to the desired output_stream.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The string scalar to print.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print-v2/attrs#structtensorflow_1_1ops_1_1_print_v2_1_1_attrs)):\n\n- output_stream: A string specifying the output stream or logging level to print to.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PrintV2](#classtensorflow_1_1ops_1_1_print_v2_1a393f67a5391f338d8e3fc19569ba4459)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [PrintV2](#classtensorflow_1_1ops_1_1_print_v2_1ad9ecc820cf2a86447d7ddd6b25d9a8bd)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[PrintV2::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print-v2/attrs#structtensorflow_1_1ops_1_1_print_v2_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_print_v2_1a9a1413e54679233c6d74b835e575f5da) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_print_v2_1afa90ca91f2d7ecab65f37d5a94dac85b)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [End](#classtensorflow_1_1ops_1_1_print_v2_1a2d4c2e84f84215b9d18cc46c7806d5a5)`(StringPiece x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print-v2/attrs#structtensorflow_1_1ops_1_1_print_v2_1_1_attrs) |\n| [OutputStream](#classtensorflow_1_1ops_1_1_print_v2_1ab139b92d03800230ff3f84b1395ae0af)`(StringPiece x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print-v2/attrs#structtensorflow_1_1ops_1_1_print_v2_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::PrintV2::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print-v2/attrs) | Optional attribute setters for [PrintV2](/versions/r2.0/api_docs/cc/class/tensorflow/ops/print-v2#classtensorflow_1_1ops_1_1_print_v2). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### PrintV2\n\n```gdscript\n PrintV2(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### PrintV2\n\n```gdscript\n PrintV2(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const PrintV2::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### End\n\n```text\nAttrs End(\n StringPiece x\n)\n``` \n\n### OutputStream\n\n```text\nAttrs OutputStream(\n StringPiece x\n)\n```"]]