Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::Print
#include <logging_ops.h>
Prints a list of tensors.
Summary
Passes input
through to output
and prints data
when evaluating.
Args:
- scope: A Scope object
- input: The tensor passed to
output
- data: A list of tensors to print out when op is evaluated.
Optional attributes (see Attrs
):
- message: A string, prefix of the error message.
- first_n: Only log
first_n
number of times. -1 disables logging.
- summarize: Only print this many entries of each tensor.
Returns:
Output
: The unmodified input
tensor
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
FirstN
Attrs FirstN(
int64 x
)
Message
Attrs Message(
StringPiece x
)
Summarize
Attrs Summarize(
int64 x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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\nArgs:\n\n- scope: A [Scope](/versions/r2.14/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.14/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.14/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.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::InputList](/versions/r2.14/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.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::InputList](/versions/r2.14/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` data, const `[Print::Attrs](/versions/r2.14/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.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_print_1a1f291767a55bb0a6588edc7a21b0aa22) | `::`[tensorflow::Output](/versions/r2.14/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.14/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.14/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.14/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.14/api_docs/cc/struct/tensorflow/ops/print/attrs) | Optional attribute setters for [Print](/versions/r2.14/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```"]]