parameters: (a)
return_statement: return a
docstring: Converts IndexedSlices to IndexedSlicesValue with numpy indices/values.
  
    When eager execution is enabled, converts IndexedSlices
    to IndexedSlicesValue with numpy indices/values.
  
    Args:
      a: any value.
  
    Returns:
      If a is IndexedSlices and eager execution is enabled, calls numpy() on a's
      fields. Otherwise returns a unchanged.
docstring_summary: Converts IndexedSlices to IndexedSlicesValue with numpy indices/values.
docstring_tokens: Converts IndexedSlices to IndexedSlicesValue with numpy indices / values .
function: def _eval_indexed_slices(a):
    """Converts IndexedSlices to IndexedSlicesValue with numpy indices/values.
  
    When eager execution is enabled, converts IndexedSlices
    to IndexedSlicesValue with numpy indices/values.
  
    Args:
      a: any value.
  
    Returns:
      If a is IndexedSlices and eager execution is enabled, calls numpy() on a's
      fields. Otherwise returns a unchanged.
    """
    if (isinstance(a, indexed_slices.IndexedSlices) and
        context.executing_eagerly()):
      return indexed_slices.IndexedSlicesValue(
          indices=[x.numpy() for x in a.indices],
          values=[x.numpy() for x in a.values],
          dense_shape=a.dense_shape)
    return a
function_tokens: def _eval_indexed_slices ( a ) : if ( isinstance ( a , indexed_slices . IndexedSlices ) and context . executing_eagerly ( ) ) : return indexed_slices . IndexedSlicesValue ( indices = [ x . numpy ( ) for x in a . indices ] , values = [ x . numpy ( ) for x in a . values ] , dense_shape = a . dense_shape ) return a