changed layer_definitions, nnet and input shapes. Plus made a hack in cudaconvnet2 (cf wiki) to accomodate our case. The program seems to work now