zheng-da opened a new issue #10689: MXNet conv should check the number of 
elements in strides, padding, etc.
URL: https://github.com/apache/incubator-mxnet/issues/10689
 
 
   MXNet conv doesn't check the number of elements in strides, padding, etc.
   
   Below is the code from @anirudh2290 that generates the bug.
   
   ```python
   import mxnet as mx
   arr = mx.nd.random.uniform(shape=(10, 10, 32, 32))
   weight1 = mx.nd.random.uniform(shape=(10, 10, 3, 3))
   arr1 = mx.nd.Convolution(data=arr, weight=weight1, no_bias=True, kernel=(3, 
3), stride=(1), num_filter=10)
   arr2 = mx.nd.Convolution(data=arr, weight=weight1, no_bias=True, kernel=(3, 
3), stride=(1, 1), num_filter=10)
   print((arr1 == arr2).asnumpy().sum())
   ```
   This outputs 2616.0, while we expect 3000 because the output shape is (10L, 
10L, 30L, 1L).

----------------------------------------------------------------
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

Reply via email to