parameters: (self, dtype=None, name=None, as_ref=False)
docstring: Converts a variable to a tensor.
docstring_summary: Converts a variable to a tensor.
docstring_tokens: Converts a variable to a tensor .
function: def _dense_var_to_tensor(self, dtype=None, name=None, as_ref=False):
      """Converts a variable to a tensor."""
      # pylint: disable=protected-access
      if tpu_util.enclosing_tpu_context() is None:
        return self.read_value()
      else:
        return self._read_variable_op()
function_tokens: def _dense_var_to_tensor ( self , dtype = None , name = None , as_ref = False ) : # pylint: disable=protected-access if tpu_util . enclosing_tpu_context ( ) is None : return self . read_value ( ) else : return self . _read_variable_op ( )