def resample(self, x=None):
        if x is None:
            x = np.zeros((0,self.K))

        self.resample_omega(x)
        self.resample_psi(x)
dataset/ETHPy150Open HIPS/pgmult/pgmult/distributions.py/PGMultinomial.resample/original