non-contiguous error check for repeatTensor