def sample(self, shape):
        scale = np.sqrt(2. / sum(get_fans(shape)))
        if self.uniform:
            return self.rand.uniform(-1, 1, size=shape) * scale
        else:
            return self.rand.randn(*shape) * scale
dataset/ETHPy150Open zomux/deepy/deepy/utils/initializers.py/XavierGlorotInitializer.sample/original