Resize the tensor according to the given LongStorage size. A convenience method exists for a number of dimensions up to 4.