(self, a)
return upsample.upsampler(self.size, a.shape,
                    image_size=self.image_size,
                    scale_offset=self.scale_offset,
                    dtype=a.dtype, device=a.device)
Returns an upsampler instance, defaulting to simple upscaling
        if a specific upsampler is not specified.
Returns an upsampler instance, defaulting to simple upscaling
        if a specific upsampler is not specified.
Returns an upsampler instance defaulting to simple upscaling if a specific upsampler is not specified .
def upsampler_for(self, a):
        '''
        Returns an upsampler instance, defaulting to simple upscaling
        if a specific upsampler is not specified.
        '''
        if self.upsampler is not None:
            return self.upsampler
        return upsample.upsampler(self.size, a.shape,
                    image_size=self.image_size,
                    scale_offset=self.scale_offset,
                    dtype=a.dtype, device=a.device)
def upsampler_for ( self , a ) : if self . upsampler is not None : return self . upsampler return upsample . upsampler ( self . size , a . shape , image_size = self . image_size , scale_offset = self . scale_offset , dtype = a . dtype , device = a . device )