add set_input_dim on the pycaffe

Change the input size after initializing the net.