จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: พิมพ์:: คุณสมบัติ
#include <logging_ops.h>
ตัวตั้งค่าคุณลักษณะเพิ่มเติมสำหรับ Print
สรุป
งานสาธารณะ |
---|
FirstN (int64 x) | บันทึกเพียงจำนวน first_n ครั้ง |
Message (StringPiece x) | สตริง คำนำหน้าของข้อความแสดงข้อผิดพลาด |
Summarize (int64 x) | พิมพ์เฉพาะรายการจำนวนมากนี้ของแต่ละเทนเซอร์ |
คุณลักษณะสาธารณะ
อันดับแรก_n_
int64 tensorflow::ops::Print::Attrs::first_n_ = -1
ข้อความ_
StringPiece tensorflow::ops::Print::Attrs::message_ = ""
สรุป_
int64 tensorflow::ops::Print::Attrs::summarize_ = 3
งานสาธารณะ
เฟิร์สN
TF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::FirstN(
int64 x
)
บันทึกเพียงจำนวน first_n
ครั้ง
-1 ปิดใช้งานการบันทึก
ค่าเริ่มต้นเป็น -1
ข้อความ
TF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::Message(
StringPiece x
)
สตริง คำนำหน้าของข้อความแสดงข้อผิดพลาด
ค่าเริ่มต้นเป็น ""
สรุป
TF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::Summarize(
int64 x
)
พิมพ์เฉพาะรายการจำนวนมากนี้ของแต่ละเทนเซอร์
ค่าเริ่มต้นคือ 3
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::Print::Attrs Struct Reference\n\ntensorflow::ops::Print::Attrs\n=============================\n\n`#include \u003clogging_ops.h\u003e`\n\nOptional attribute setters for [Print](/versions/r2.0/api_docs/cc/class/tensorflow/ops/print#classtensorflow_1_1ops_1_1_print).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------|---------------|\n| [first_n_](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1af8f25a20580117a952bad2c9a57d85ac)` = -1` | `int64` |\n| [message_](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1ad56f4fff8a98e993f8d7a4be46c29ece)` = \"\"` | `StringPiece` |\n| [summarize_](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1a265944d8a91cd87abe8dcbddafe2e397)` = 3` | `int64` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirstN](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1ad50937bb415b3f37ec896083ff06233d)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) Only log `first_n` number of times. |\n| [Message](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1aa3075f81bbcad5e3730d0270c1f1f050)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) A string, prefix of the error message. |\n| [Summarize](#structtensorflow_1_1ops_1_1_print_1_1_attrs_1afa5fb4638ead2a216f5dbd69dd88f5f2)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) Only print this many entries of each tensor. |\n\nPublic attributes\n-----------------\n\n### first_n_\n\n```scdoc\nint64 tensorflow::ops::Print::Attrs::first_n_ = -1\n``` \n\n### message_\n\n```scdoc\nStringPiece tensorflow::ops::Print::Attrs::message_ = \"\"\n``` \n\n### summarize_\n\n```scdoc\nint64 tensorflow::ops::Print::Attrs::summarize_ = 3\n``` \n\nPublic functions\n----------------\n\n### FirstN\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::FirstN(\n int64 x\n)\n``` \nOnly log `first_n` number of times.\n\n-1 disables logging.\n\nDefaults to -1 \n\n### Message\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::Message(\n StringPiece x\n)\n``` \nA string, prefix of the error message.\n\nDefaults to \"\" \n\n### Summarize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Print::Attrs::Summarize(\n int64 x\n)\n``` \nOnly print this many entries of each tensor.\n\nDefaults to 3"]]