Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: Yazdır
#include <logging_ops.h>
Tensörlerin bir listesini yazdırır.
Özet
input
output
aktarır ve değerlendirirken data
yazdırır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- giriş: Tensör
output
aktarıldı - veri: Op değerlendirildiğinde yazdırılacak tensörlerin listesi.
İsteğe bağlı özellikler (bkz. Attrs
):
- mesaj: Hata mesajının öneki olan bir dize.
- ilk_n: Yalnızca
first_n
sayısını günlüğe kaydedin. -1 günlüğe kaydetmeyi devre dışı bırakır. - Özetle: Her tensörün yalnızca bu kadar girişini yazdırın.
İade:
-
Output
: = Değiştirilmemiş input
tensörü
Genel özellikler
Kamu işlevleri
düğüm
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
İlkN
Attrs FirstN(
int64 x
)
Mesaj
Attrs Message(
StringPiece x
)
Özetle
Attrs Summarize(
int64 x
)
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 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/r2.0/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/r2.0/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/r2.0/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/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, ::`[tensorflow::InputList](/versions/r2.0/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/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, ::`[tensorflow::InputList](/versions/r2.0/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` data, const `[Print::Attrs](/versions/r2.0/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/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_print_1a1f291767a55bb0a6588edc7a21b0aa22) | `::`[tensorflow::Output](/versions/r2.0/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/r2.0/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/r2.0/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/r2.0/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/r2.0/api_docs/cc/struct/tensorflow/ops/print/attrs) | Optional attribute setters for [Print](/versions/r2.0/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```"]]