einops icon indicating copy to clipboard operation
einops copied to clipboard

[Bad backend support] Implement median reduction

Open arogozhnikov opened this issue 5 years ago • 1 comments

Originated from patch #31

arogozhnikov avatar May 11 '19 00:05 arogozhnikov

Multiple problems:

  • mxnet and gluon don't have median (srsly??)
  • torch can compute a median only over a single axis (we can reduce median to a sequence of medians)
  • tf has no median per , but there is tf.contrib.distributions.percentile, contrib is not something to rely on
  • cupy and chainer don't have median too

There is a way through sorting, but it is too slow.

arogozhnikov avatar May 14 '19 17:05 arogozhnikov