tensorflow::ops::Print
#include <logging_ops.h>
Prints a list of tensors.
Summary
Passes input
through to output
and prints data
when evaluating.
Arguments:
- 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 unmodifiedinput
tensor
Constructors and Destructors | |
---|---|
Print(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::InputList data) |
|
Print(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::InputList data, const Print::Attrs & attrs) |
Public attributes | |
---|---|
operation |
|
output |
Public functions | |
---|---|
node() const |
::tensorflow::Node *
|
operator::tensorflow::Input() const |
|
operator::tensorflow::Output() const |
Public static functions | |
---|---|
FirstN(int64 x) |
|
Message(StringPiece x) |
|
Summarize(int64 x) |
Structs | |
---|---|
tensorflow::ops::Print::Attrs | Optional attribute setters for Print. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
Print( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::InputList data )
Print( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::InputList data, const Print::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
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 )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/print