Table Of Contents
Table Of Contents

np_reduce

mxnet.test_utils.np_reduce(dat, axis, keepdims, numpy_reduce_func)[source]

Compatible reduce for old version of NumPy.

Parameters:
  • dat (np.ndarray) – Same as NumPy.
  • axis (None or int or list-like) – Same as NumPy.
  • keepdims (bool) – Same as NumPy.
  • numpy_reduce_func (function) – A NumPy reducing function like np.sum or np.max.