W3cubDocs

/TensorFlow C++

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 unmodified input 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
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

output

::tensorflow::Output output

Public functions

Print

 Print(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::InputList data
)

Print

 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
)

© 2017 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/api_docs/cc/class/tensorflow/ops/print.html