Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: In
#include <logging_ops.h>
In danh sách các tensor.
Bản tóm tắt
Chuyển input
đến output
và in data
khi đánh giá.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- đầu vào: Tenor được truyền đến
output
- dữ liệu: Danh sách các tensor để in ra khi op được đánh giá.
Thuộc tính tùy chọn (xem Attrs
):
- message: Một chuỗi, tiền tố của thông báo lỗi.
- first_n: Chỉ đăng nhập
first_n
số lần. -1 vô hiệu hóa ghi nhật ký. - tóm tắt: Chỉ in nhiều mục này của mỗi tensor.
Trả về:
-
Output
: = Tensor input
chưa sửa đổi
Thuộc tính công khai
Chức năng công cộng
nút
::tensorflow::Node * node() const
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() const
Các hàm tĩnh công khai
đầu tiênN
Attrs FirstN(
int64 x
)
Tin nhắn
Attrs Message(
StringPiece x
)
Tóm tắt
Attrs Summarize(
int64 x
)
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::Print Class Reference\n\ntensorflow::ops::Print\n======================\n\n`#include \u003clogging_ops.h\u003e`\n\nPrints a list of tensors.\n\nSummary\n-------\n\nPasses `input` through to `output` and prints `data` when evaluating.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The tensor passed to `output`\n- data: A list of tensors to print out when op is evaluated.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs)):\n\n- message: A string, prefix of the error message.\n- first_n: Only log `first_n` number of times. -1 disables logging.\n- summarize: Only print this many entries of each tensor.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): = The unmodified `input` tensor\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Print](#classtensorflow_1_1ops_1_1_print_1a045114616a75209031b16a91ab6886a9)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::InputList](/versions/r1.15/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` data)` ||\n| [Print](#classtensorflow_1_1ops_1_1_print_1ae0e888fac9448baecd014b7719cc2661)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::InputList](/versions/r1.15/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` data, const `[Print::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_print_1a74c21680e82124c4aef96b82bea9a7d5) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_print_1a1f291767a55bb0a6588edc7a21b0aa22) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_print_1a459fd07f913ed9a5af7cc577ee59e150)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_print_1a2dc81db16b755a870dd256181cc4b37c)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_print_1ae39f8736788e2a1a9af58da9750e4d3b)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|\n| [FirstN](#classtensorflow_1_1ops_1_1_print_1a86911253c358a4ceddcb6b053000f4af)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) |\n| [Message](#classtensorflow_1_1ops_1_1_print_1ad7c6e26201c3c6667ee8775498ec8247)`(StringPiece x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) |\n| [Summarize](#classtensorflow_1_1ops_1_1_print_1a4a677e49c007384d2535eb7cae7157a6)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs#structtensorflow_1_1ops_1_1_print_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Print::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/print/attrs) | Optional attribute setters for [Print](/versions/r1.15/api_docs/cc/class/tensorflow/ops/print#classtensorflow_1_1ops_1_1_print). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### Print\n\n```gdscript\n Print(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::InputList data\n)\n``` \n\n### Print\n\n```gdscript\n Print(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::InputList data,\n const Print::Attrs & attrs\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``` \n\nPublic static functions\n-----------------------\n\n### FirstN\n\n```text\nAttrs FirstN(\n int64 x\n)\n``` \n\n### Message\n\n```text\nAttrs Message(\n StringPiece x\n)\n``` \n\n### Summarize\n\n```text\nAttrs Summarize(\n int64 x\n)\n```"]]