You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/16 17:48:21 UTC

[GitHub] zhanghang1989 opened a new issue #10976: MNIST LeNet forward fails on master branch

zhanghang1989 opened a new issue #10976: MNIST LeNet forward fails on master branch
URL: https://github.com/apache/incubator-mxnet/issues/10976
 
 
   MNIST LeNet forward fails on master branch. @eric-haibin-lin mentioned that it may be related to this PR https://github.com/apache/incubator-mxnet/pull/10911
   ```python
   import mxnet as mx
   from mxnet.gluon import nn, Block
   net = nn.HybridSequential()
   with net.name_scope():
           net.add(nn.Conv2D(in_channels=1, channels=20, kernel_size=5))
           net.add(nn.Activation('relu'))
           net.add(nn.MaxPool2D(pool_size=2, strides=2))
           net.add(nn.Conv2D(in_channels=20, channels=50, kernel_size=5))
           net.add(nn.Activation('relu'))
           net.add(nn.MaxPool2D(pool_size=2, strides=2))
           # The Flatten layer collapses all axis, except the first one, into one axis.
           net.add(nn.Flatten())
           net.add(nn.Dense(512,in_units=800))
           net.add(nn.Activation('relu'))
           net.add(nn.Dense(10, in_units=512))
   net.collect_params().initialize()
   x = mx.random.uniform(shape=(8, 1, 28, 28))
   net(x)
   ```
   Got this error
   ```bash
   Segmentation fault (core dumped)
   ```
   

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