apeforest commented on a change in pull request #12594: [MXNET-867] Pooling1D
with "same" padding
URL: https://github.com/apache/incubator-mxnet/pull/12594#discussion_r219385163
##########
File path: tests/python/unittest/test_operator.py
##########
@@ -6957,6 +6957,21 @@ def test_invalid_depth_dim():
test_invalid_block_size()
test_invalid_depth_dim()
+@with_seed()
+def test_max_pooling_pad_type_same():
+ import math
+ input_data = mx.nd.array(np.random.rand(1,1,10))
+ stride = 2
+ kernel = 2
+ output_data=mx.nd.Pooling(
+ input_data,
Review comment:
Do you also want to test the case where user selects "same" pad type but
also supplies pad values?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services