def weights(self):
        """
        Get a numpy array of weights, one per diffusion step.

        The weights needn't be normalized, but must be positive.
        """

        Get a numpy array of weights, one per diffusion step.

        The weights needn't be normalized, but must be positive.
        
ldm/modules/karlo/kakao/modules/resample.py