autumnai / leaf-examples

Examples for the Hacker's Machine Learning Framework Leaf
78 stars 18 forks source link

fix/nn-config: fix NN input vector dimensions [SKIP_CHANGELOG] #15

Open alexandermorozov opened 8 years ago

alexandermorozov commented 8 years ago

It looks like input to NN should have [batch_size, width, height] dimensions instead of [batch_size, 1, width, height], but I'm not completely sure. In case of conv and mlp input is reshaped explicitly with Reshape layer, in case of linear it's most likely reshaped implicitly to [batch_size, width*height]. Still it's not very clear what that 1 is for, looks like leftover from conv...