this code  does not work !!  
 patches_image1 = image.extract_patches_2d(image1['taille'], ((10,10)))
 patches_image2 = image.extract_patches_2d(image2['taille'], ((10,10)))
 patchesconcatenate = torch.cat((patches_image1, patches_image2),1)

TypeError: expected Tensor as element 0 in argument 0, but got numpy.ndarray

help me plzz