Support use of -1 in reshape on GPU

User picture