(self, image)
return image
Args:
            image (Tensor): image tensor to be transformed
        Return:
            a tensor with channels swapped according to swap
Args:
            image (Tensor): image tensor to be transformed
        Return:
            a tensor with channels swapped according to swap
Args : image ( Tensor ) : image tensor to be transformed Return : a tensor with channels swapped according to swap
def __call__(self, image):
        """
        Args:
            image (Tensor): image tensor to be transformed
        Return:
            a tensor with channels swapped according to swap
        """
        # if torch.is_tensor(image):
        #     image = image.data.cpu().numpy()
        # else:
        #     image = np.array(image)
        image = image[:, :, self.swaps]
        return image
def __call__ ( self , image ) : # if torch.is_tensor(image): #     image = image.data.cpu().numpy() # else: #     image = np.array(image) image = image [ : , : , self . swaps ] return image