# tf.raw_ops.Print

<br />

Prints a list of tensors.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.Print`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Print)

<br />

    tf.raw_ops.Print(
        input, data, message='', first_n=-1, summarize=3, name=None
    )

Passes `input` through to `output` and prints `data` when evaluating.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A `Tensor`. The tensor passed to `output` |
| `data` | A list of `Tensor` objects. A list of tensors to print out when op is evaluated. |
| `message` | An optional `string`. Defaults to `""`. A string, prefix of the error message. |
| `first_n` | An optional `int`. Defaults to `-1`. Only log `first_n` number of times. -1 disables logging. |
| `summarize` | An optional `int`. Defaults to `3`. Only print this many entries of each tensor. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `input`. ||

<br />