ahmadreza9:

Now I don’t want to flatting my input. My input is (10, 1, 20, 224). I want to pass this tensor to l_in but I don’t know pass it to first layer of my network and how pass result of this layer to fc2.


If you look at the documentation for lasagna.layers.DenseLayer 2, you will see that they implictly perform a flattening operation for you whenever the input has more than two axes. In other words, you have been using flattened inputs in Theano, but it was “automagically” performed