parameters: (cls, tensor, **kwargs)
docstring: Converts a `tf.Tensor` into a `IOTensor`.
  
          Examples:
  
          ```python
          ```
  
          Args:
            tensor: The `Tensor` to convert.
  
          Returns:
            A `IOTensor`.
  
          Raises:
            ValueError: If tensor is not a `Tensor`.
docstring_summary: Converts a `tf.Tensor` into a `IOTensor`.
docstring_tokens: Converts a tf . Tensor into a IOTensor .
function: def from_tensor(cls, tensor, **kwargs):
          """Converts a `tf.Tensor` into a `IOTensor`.
  
          Examples:
  
          ```python
          ```
  
          Args:
            tensor: The `Tensor` to convert.
  
          Returns:
            A `IOTensor`.
  
          Raises:
            ValueError: If tensor is not a `Tensor`.
          """
          with tf.name_scope(kwargs.get("name", "IOFromTensor")):
              return io_tensor_ops.TensorIOTensor(tensor, internal=True)
function_tokens: def from_tensor ( cls , tensor , * * kwargs ) : with tf . name_scope ( kwargs . get ( "name" , "IOFromTensor" ) ) : return io_tensor_ops . TensorIOTensor ( tensor , internal = True )