(self, image, *args)
Arguments:
            image (Tensor): image tensor to be transformed
        Returns:
            a tensor with channels swapped according to swap
Arguments:
            image (Tensor): image tensor to be transformed
        Returns:
            a tensor with channels swapped according to swap
Arguments : image ( Tensor ) : image tensor to be transformed Returns : a tensor with channels swapped according to swap
def __call__(self, image, *args):
        """
        Arguments:
            image (Tensor): image tensor to be transformed
        Returns:
            a tensor with channels swapped according to swap
        """
        temp = image.clone()
        for i in range(3):
            temp[i] = image[self.swaps[i]]
        if len(args):
            return (image, *args)
        else:
            return image
def __call__ ( self , image , * args ) : temp = image . clone ( ) for i in range ( 3 ) : temp [ i ] = image [ self . swaps [ i ] ] if len ( args ) : return ( image , * args ) else : return image