parameters: (self, values)
docstring: Makes the values known to this context.
docstring_summary: Makes the values known to this context.
docstring_tokens: Makes the values known to this context .
function: def _InitializeValues(self, values):
      """Makes the values known to this context."""
      self._values = set()
      for x in values:
        if isinstance(x, ops.Tensor):
          self._values.add(x.name)
        else:
          self._values.add(x.values.name)
          self._values.add(x.indices.name)
          if isinstance(x, ops.IndexedSlices):
            dense_shape = x.dense_shape
          elif isinstance(x, ops.SparseTensor):
            dense_shape = x.shape
          else:
            raise TypeError("Type %s not supported" % type(x))
          if dense_shape is not None:
            self._values.add(dense_shape.name)
function_tokens: def _InitializeValues ( self , values ) : self . _values = set ( ) for x in values : if isinstance ( x , ops . Tensor ) : self . _values . add ( x . name ) else : self . _values . add ( x . values . name ) self . _values . add ( x . indices . name ) if isinstance ( x , ops . IndexedSlices ) : dense_shape = x . dense_shape elif isinstance ( x , ops . SparseTensor ) : dense_shape = x . shape else : raise TypeError ( "Type %s not supported" % type ( x ) ) if dense_shape is not None : self . _values . add ( dense_shape . name )