mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

When will mxnet suppot dual stride in Pooling?

Open littleDing opened this issue 10 years ago • 6 comments

// TODO(bing): dual stride in mshadow

I found the above comments in src/operator/pooling-inl.h. Is it impossible to do dual stride in mxnet now?

Something like below does not works now. pool = mx.symbol.Pooling(data=tanh, pool_type="max", kernel=(1,2), stride=(2,3))

littleDing avatar Mar 22 '16 16:03 littleDing

It should work for CUDNN version

piiswrong avatar Mar 22 '16 19:03 piiswrong

Any plan for supporting on cpu? Otherwise this can only stay in the lab. Production environment needs to predict on cpu...

littleDing avatar Mar 23 '16 02:03 littleDing

It comes to support for dual stride in mshadow https://github.com/dmlc/mshadow/blob/master/mshadow/extension/spatial_pool.h#L38

should be a few lines to modify, you are more than welcomed to contribute the change

tqchen avatar Apr 23 '16 23:04 tqchen

@tqchen would you please give some suggestions on how to modify it? I'm hoping for this function. Thanks.

horsepurve avatar May 19 '16 09:05 horsepurve

@horsepurve @littleDing the newest mxnet has supported it.

tornadomeet avatar May 23 '16 00:05 tornadomeet

@tornadomeet I really appreciate it!

horsepurve avatar May 23 '16 09:05 horsepurve