parameters: (self, element, name=None)
docstring: See `Dataset.from_tensors()` for details.
docstring_summary: See `Dataset.from_tensors()` for details.
docstring_tokens: See Dataset . from_tensors () for details .
function: def __init__(self, element, name=None):
      """See `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(TensorDataset, self).__init__(variant_tensor)
function_tokens: def __init__ ( self , element , name = None ) : 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 ( TensorDataset , self ) . __init__ ( variant_tensor )