parameters: (x)
return_statement: return tensor_util.constant_value(x)
docstring: A version of tf.get_static_value that returns None on float dtypes.
  
    It returns None on float dtypes in order to avoid breaking gradients.
  
    Args:
      x: a tensor.
  
    Returns:
      Same as `tf.get_static_value`, except that it returns None when `x` has a
      float dtype.
docstring_summary: A version of tf.get_static_value that returns None on float dtypes.
docstring_tokens: A version of tf . get_static_value that returns None on float dtypes .
function: def get_static_value(x):
    """A version of tf.get_static_value that returns None on float dtypes.
  
    It returns None on float dtypes in order to avoid breaking gradients.
  
    Args:
      x: a tensor.
  
    Returns:
      Same as `tf.get_static_value`, except that it returns None when `x` has a
      float dtype.
    """
    if isinstance(x, core.Tensor) and (x.dtype.is_floating or x.dtype.is_complex):
      return None
    return tensor_util.constant_value(x)
function_tokens: def get_static_value ( x ) : if isinstance ( x , core . Tensor ) and ( x . dtype . is_floating or x . dtype . is_complex ) : return None return tensor_util . constant_value ( x )