parameters: (condition, data, summarize=None, name=None)
docstring: Asserts that the given condition is true.
  
    If `condition` evaluates to false, print the list of tensors in `data`.
    `summarize` determines how many entries of the tensors to print.
  
    NOTE: To ensure that Assert executes, one usually attaches a dependency:
  
    ```python
     # Ensure maximum element of x is smaller or equal to 1
    assert_op = tf.Assert(tf.less_equal(tf.reduce_max(x), 1.), [x])
    x = tf.with_dependencies([assert_op], x)
    ```
  
    Args:
      condition: The condition to evaluate.
      data: The tensors to print out when condition is false.
      summarize: Print this many entries of each tensor.
      name: A name for this operation (optional).
  
    Returns:
      assert_op: An `Operation` that, when executed, raises a
      `tf.errors.InvalidArgumentError` if `condition` is not true.
docstring_summary: Asserts that the given condition is true.
docstring_tokens: Asserts that the given condition is true .
function: def Assert(condition, data, summarize=None, name=None):
    """Asserts that the given condition is true.
  
    If `condition` evaluates to false, print the list of tensors in `data`.
    `summarize` determines how many entries of the tensors to print.
  
    NOTE: To ensure that Assert executes, one usually attaches a dependency:
  
    ```python
     # Ensure maximum element of x is smaller or equal to 1
    assert_op = tf.Assert(tf.less_equal(tf.reduce_max(x), 1.), [x])
    x = tf.with_dependencies([assert_op], x)
    ```
  
    Args:
      condition: The condition to evaluate.
      data: The tensors to print out when condition is false.
      summarize: Print this many entries of each tensor.
      name: A name for this operation (optional).
  
    Returns:
      assert_op: An `Operation` that, when executed, raises a
      `tf.errors.InvalidArgumentError` if `condition` is not true.
    """
    with ops.name_scope(name, "Assert", [condition, data]) as name:
      condition = ops.convert_to_tensor(condition, name="Condition")
      def true_assert():
        return gen_logging_ops._assert(
            condition, data, summarize, name="Assert")
      # TODO(ebrevdo): Remove the cond once when can tell all inputs are on host.
      guarded_assert = cond(
          condition, no_op, true_assert, name="AssertGuard")
      return guarded_assert.op
function_tokens: def Assert ( condition , data , summarize = None , name = None ) : with ops . name_scope ( name , "Assert" , [ condition , data ] ) as name : condition = ops . convert_to_tensor ( condition , name = "Condition" ) def true_assert ( ) : return gen_logging_ops . _assert ( condition , data , summarize , name = "Assert" ) # TODO(ebrevdo): Remove the cond once when can tell all inputs are on host. guarded_assert = cond ( condition , no_op , true_assert , name = "AssertGuard" ) return guarded_assert . op