parameters: (self, min_event_ndims, event_ndims)
docstring: Compute the reduction dimensions given event_ndims.
docstring_summary: Compute the reduction dimensions given event_ndims.
docstring_tokens: Compute the reduction dimensions given event_ndims .
function: def _get_event_reduce_dims(self, min_event_ndims, event_ndims):
      """Compute the reduction dimensions given event_ndims."""
      event_ndims_ = self._maybe_get_static_event_ndims(event_ndims)
  
      if event_ndims_ is not None:
        return [-index for index in range(1, event_ndims_ - min_event_ndims + 1)]
      else:
        reduce_ndims = event_ndims - min_event_ndims
        return math_ops.range(-reduce_ndims, 0)
function_tokens: def _get_event_reduce_dims ( self , min_event_ndims , event_ndims ) : event_ndims_ = self . _maybe_get_static_event_ndims ( event_ndims ) if event_ndims_ is not None : return [ - index for index in range ( 1 , event_ndims_ - min_event_ndims + 1 ) ] else : reduce_ndims = event_ndims - min_event_ndims return math_ops . range ( - reduce_ndims , 0 )