parameters: (t, clip_value_min, clip_value_max,
                    name=None)
return_statement: return t_max
docstring: Clips tensor values to a specified min and max.
  
    Given a tensor `t`, this operation returns a tensor of the same type and
    shape as `t` with its values clipped to `clip_value_min` and `clip_value_max`.
    Any values less than `clip_value_min` are set to `clip_value_min`. Any values
    greater than `clip_value_max` are set to `clip_value_max`.
  
    Args:
      t: A `Tensor`.
      clip_value_min: A 0-D (scalar) `Tensor`. The minimum value to clip by.
      clip_value_max: A 0-D (scalar) `Tensor`. The maximum value to clip by.
      name: A name for the operation (optional).
  
    Returns:
      A clipped `Tensor`.
docstring_summary: Clips tensor values to a specified min and max.
docstring_tokens: Clips tensor values to a specified min and max .
function: def clip_by_value(t, clip_value_min, clip_value_max,
                    name=None):
    """Clips tensor values to a specified min and max.
  
    Given a tensor `t`, this operation returns a tensor of the same type and
    shape as `t` with its values clipped to `clip_value_min` and `clip_value_max`.
    Any values less than `clip_value_min` are set to `clip_value_min`. Any values
    greater than `clip_value_max` are set to `clip_value_max`.
  
    Args:
      t: A `Tensor`.
      clip_value_min: A 0-D (scalar) `Tensor`. The minimum value to clip by.
      clip_value_max: A 0-D (scalar) `Tensor`. The maximum value to clip by.
      name: A name for the operation (optional).
  
    Returns:
      A clipped `Tensor`.
    """
    with ops.name_scope(name, "clip_by_value",
                        [t, clip_value_min, clip_value_max]) as name:
      t = ops.convert_to_tensor(t, name="t")
  
      # Go through list of tensors, for each value in each tensor clip
      t_min = math_ops.minimum(t, clip_value_max)
      t_max = math_ops.maximum(t_min, clip_value_min, name=name)
  
    return t_max
function_tokens: def clip_by_value ( t , clip_value_min , clip_value_max , name = None ) : with ops . name_scope ( name , "clip_by_value" , [ t , clip_value_min , clip_value_max ] ) as name : t = ops . convert_to_tensor ( t , name = "t" ) # Go through list of tensors, for each value in each tensor clip t_min = math_ops . minimum ( t , clip_value_max ) t_max = math_ops . maximum ( t_min , clip_value_min , name = name ) return t_max