piiswrong commented on a change in pull request #9305: Fixing two symbol files 
for CNN
URL: https://github.com/apache/incubator-mxnet/pull/9305#discussion_r159729510
 
 

 ##########
 File path: example/image-classification/symbols/googlenet.py
 ##########
 @@ -65,7 +65,7 @@ def get_symbol(num_classes = 1000, **kwargs):
     pool5 = mx.sym.Pooling(in4e, kernel=(3, 3), stride=(2, 2), pool_type="max")
     in5a = InceptionFactory(pool5, 256, 160, 320, 32, 128, "max", 128, 
name="in5a")
     in5b = InceptionFactory(in5a, 384, 192, 384, 48, 128, "max", 128, 
name="in5b")
-    pool6 = mx.sym.Pooling(in5b, kernel=(7, 7), stride=(1,1), pool_type="avg")
+    pool6 = mx.sym.Pooling(in5b, kernel=(7, 7), stride=(1,1), pad=(1, 1), 
pool_type="avg")
 
 Review comment:
   The kernel size depends on input size. Use global pooling instead.

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