class_docstr: KafkaIOTensor
docstr: Converts this `IOTensor` into a `tf.Tensor`.
  
  Args:
      name: A name prefix for the returned tensors (optional).
  
  Returns:
      A `Tensor` with value obtained from this `IOTensor`.
docstr_tok: ["Converts","this","`","IOTensor","`","into","a","`","tf.Tensor","`",".","Args",":","name",":","A","name","prefix","for","the","returned","tensors","(","optional",")",".","Returns",":","A","`","Tensor","`","with","value","obtained","from","this","`","IOTensor","`","."]
code: def to_tensor(self):
      """Converts this `IOTensor` into a `tf.Tensor`.
  
      Args:
          name: A name prefix for the returned tensors (optional).
  
      Returns:
          A `Tensor` with value obtained from this `IOTensor`.
      """
      item, _ = core_ops.io_kafka_readable_read(
          self._resource, start=0, stop=-1
      )
      return item
  
file_path: io/tensorflow_io/python/ops/kafka_io_tensor_ops.py
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 5 for calling the KafkaIOTensor obj's underlying member method code with example usage: obj.to_tensor() and returns: item