torch.cat() function expects torch.tensor as input, not np.ndarray.
You need to cast patches_image1 and patches_image2 to torch.tensor.
The following way will work: torch.tensor(patches_image1) and torch.tensor(patches_image1).