{ }
View source on GitHub |
Prints a list of tensors. (deprecated)
tf.compat.v1.Print(
input_, data, message=None, first_n=None, summarize=None, name=None
)
Migrate to TF2
This API is deprecated. Use tf.print
instead. tf.print
does not need the
input_
argument.
tf.print
works in TF2 when executing eagerly and inside a tf.function
.
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.
Returns | |
---|---|
A Tensor . Has the same type and contents as input_ .
|