parameters: (tensor, tf_type, message=None, name=None)
docstring: Statically asserts that the given `Tensor` is of the specified type.
  
    Args:
      tensor: A tensorflow `Tensor`.
      tf_type: A tensorflow type (dtypes.float32, tf.int64, dtypes.bool, etc).
      message: A string to prefix to the default message.
      name:  A name to give this `Op`.  Defaults to "assert_type"
  
    Raises:
      TypeError: If the tensors data type doesn't match tf_type.
  
    Returns:
      A `no_op` that does nothing.  Type can be determined statically.
docstring_summary: Statically asserts that the given `Tensor` is of the specified type.
docstring_tokens: Statically asserts that the given Tensor is of the specified type .
function: def assert_type(tensor, tf_type, message=None, name=None):
    """Statically asserts that the given `Tensor` is of the specified type.
  
    Args:
      tensor: A tensorflow `Tensor`.
      tf_type: A tensorflow type (dtypes.float32, tf.int64, dtypes.bool, etc).
      message: A string to prefix to the default message.
      name:  A name to give this `Op`.  Defaults to "assert_type"
  
    Raises:
      TypeError: If the tensors data type doesn't match tf_type.
  
    Returns:
      A `no_op` that does nothing.  Type can be determined statically.
    """
    message = message or ''
    with ops.op_scope([tensor], name, 'assert_type'):
      tensor = ops.convert_to_tensor(tensor, name='tensor')
      if tensor.dtype != tf_type:
        raise TypeError(
            '%s  %s must be of type %s' % (message, tensor.op.name, tf_type))
  
      return control_flow_ops.no_op('statically_determined_correct_type')
function_tokens: def assert_type ( tensor , tf_type , message = None , name = None ) : message = message or '' with ops . op_scope ( [ tensor ] , name , 'assert_type' ) : tensor = ops . convert_to_tensor ( tensor , name = 'tensor' ) if tensor . dtype != tf_type : raise TypeError ( '%s  %s must be of type %s' % ( message , tensor . op . name , tf_type ) ) return control_flow_ops . no_op ( 'statically_determined_correct_type' )