In TF1-styled sessions, an explicit control dependency declaration is needed
to execute the tf.print operation. Refer to the documentation of
tf.print for more details.
Description
This is an identity op (behaves like tf.identity) with the side effect
of printing data when evaluating.
Args
input_
A tensor passed through this op.
data
A list of tensors to print out when op is evaluated.
message
A string, prefix of the error message.
first_n
Only log first_n number of times. Negative numbers log always;
this is the default.
summarize
Only print this many entries of each tensor. If None, then a
maximum of 3 elements are printed per input tensor.
name
A name for the operation (optional).
Returns
A Tensor. Has the same type and contents as input_.