Open jdchoi77 opened 7 years ago
Is there a reason why you have to do this all in Sequential with primitive layers? Why don't you just write a block that does the multiple filters and then stack multiple such blocks with a sequential?
you can try gluon.Block https://mxnet.incubator.apache.org/api/python/gluon/gluon.html?highlight=block#mxnet.gluon.Block
For the example code provided by https://mxnet.incubator.apache.org/tutorials/nlp/cnn.html
Could you please provide a code using Gluon that is equivalent to the above code? Would it be possible to accomplish this by using
net = gluon.nn.Sequential()
although those convolutions are performed in parallel for [3, 4, 5]-gram filters? Thank you!