caffe_set now works in GPU mode

caffe_set for GPU mode.

I'm not sure this works when `alpha != 0`, I've not at the moment a gpu to test it. My doubt is that when the vector `Y` is gpu data, could not be directly accessible.
If I have no directions in the next two days, I'll try to test it with a gpu.