# tf.raw_ops.Assert

<br />

Asserts that the given condition is true.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.Assert(
        condition, data, summarize=3, name=None
    )

If `condition` evaluates to false, print the list of tensors in `data`.
`summarize` determines how many entries of the tensors to print.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `condition` | A `Tensor` of type `bool`. The condition to evaluate. |
| `data` | A list of `Tensor` objects. The tensors to print out when condition is false. |
| `summarize` | An optional `int`. Defaults to `3`. Print this many entries of each tensor. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The created Operation. ||

<br />