pycaffe: allow 1d labels to be passed to set_input_arrays