parameters: (self, tensors)
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, tensors):
      """See `Dataset.from_tensors()` for details."""
      super(TensorDataset, self).__init__()
      with ops.name_scope("tensors"):
        self._tensors = nest.pack_sequence_as(tensors, [
            ops.convert_to_tensor(t, name="component_%d" % i)
            for i, t in enumerate(nest.flatten(tensors))
        ])
function_tokens: def __init__ ( self , tensors ) : super ( TensorDataset , self ) . __init__ ( ) with ops . name_scope ( "tensors" ) : self . _tensors = nest . pack_sequence_as ( tensors , [ ops . convert_to_tensor ( t , name = "component_%d" % i ) for i , t in enumerate ( nest . flatten ( tensors ) ) ] )