Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Wydrukować
#include <logging_ops.h>
Drukuje listę tensorów.
Streszczenie
Przekazuje input
na output
i drukuje data
podczas oceny.
Argumenty:
- zakres: Obiekt Scope
- wejście: tensor przekazany na
output
- dane: Lista tensorów do wydrukowania podczas oceny op.
Opcjonalne atrybuty (patrz Attrs
):
- komunikat: ciąg znaków, przedrostek komunikatu o błędzie.
- First_n: Rejestruj tylko
first_n
liczbę razy. -1 wyłącza rejestrowanie. - podsumowuj: Wydrukuj tylko tyle wpisów każdego tensora.
Zwroty:
-
Output
: = Niezmodyfikowany tensor input
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Pierwszy N
Attrs FirstN(
int64 x
)
Wiadomość
Attrs Message(
StringPiece x
)
Streszczać
Attrs Summarize(
int64 x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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```"]]