class_docstr: A `Dataset` with a single element.
docstr: See `tf.data.Dataset.from_tensors` for details.
docstr_tok: ["See","`","tf.data.Dataset.from_tensors","`","for","details","."]
code: def __init__(self, element, name=None):
      """See `tf.data.Dataset.from_tensors` for details."""
      element = structure.normalize_element(element)
      self._structure = structure.type_spec_from_value(element)
      self._tensors = structure.to_tensor_list(self._structure, element)
      self._name = name
      variant_tensor = gen_dataset_ops.tensor_dataset(
          self._tensors,
          output_shapes=structure.get_flat_tensor_shapes(
              self._structure
          ),
          metadata=self._metadata.SerializeToString(),
      )
      super().__init__(variant_tensor)
  
file_path: tensorflow-upstream/tensorflow/python/data/ops/from_tensors_op.py
imports: from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import structure
  from tensorflow.python.ops import gen_dataset_ops
label_desc: Use image node_id 1 to create a new _TensorDataset object from inherited base classes: dataset_ops with example: obj = _TensorDataset(element, name)