parameters: (value)
docstring: Returns true if `value` is convertible to a `Tensor`.
docstring_summary: Returns true if `value` is convertible to a `Tensor`.
docstring_tokens: Returns true if value is convertible to a Tensor .
function: def _is_convertible_to_tensor(value):
    """Returns true if `value` is convertible to a `Tensor`."""
    if value is None:
      return True
    if isinstance(value,
                  (ops.Tensor, variables.Variable, np.ndarray, int, float, str)):
      return True
    elif isinstance(value, (sparse_tensor.SparseTensor,)):
      return False
    else:
      try:
        ops.convert_to_tensor(value)
        return True
      except (TypeError, ValueError):
        return False
function_tokens: def _is_convertible_to_tensor ( value ) : if value is None : return True if isinstance ( value , ( ops . Tensor , variables . Variable , np . ndarray , int , float , str ) ) : return True elif isinstance ( value , ( sparse_tensor . SparseTensor , ) ) : return False else : try : ops . convert_to_tensor ( value ) return True except ( TypeError , ValueError ) : return False