You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/07/28 22:44:18 UTC

[GitHub] piiswrong commented on a change in pull request #7023: gluon models

piiswrong commented on a change in pull request #7023: gluon models
URL: https://github.com/apache/incubator-mxnet/pull/7023#discussion_r130200300
 
 

 ##########
 File path: python/mxnet/gluon/model_zoo/vision/alexnet.py
 ##########
 @@ -0,0 +1,67 @@
+# coding: utf-8
+# pylint: disable= arguments-differ
+"""Alexnet, implemented in Gluon."""
+__all__ = ['AlexNet', 'alexnet']
+
+from ....context import cpu
+from ...block import HybridBlock
+from ... import nn
+
+# Net
+class AlexNet(HybridBlock):
+    r"""AlexNet model from the `"One weird trick..." <https://arxiv.org/abs/1404.5997>`_ paper.
+
+    Parameters
+    ----------
+    classes : int
+        Number of classes for the output layer.
+    """
+    def __init__(self, classes, **kwargs):
 
 Review comment:
   add default 
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services