reshape layer, euclidean loss GPU