def sample(self, shape):
        fan_in, fan_out = get_fans(shape)
        scale = np.sqrt(2. / fan_in)
        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/KaimingHeInitializer.sample/original