def test_fan_in(self):
    for uniform in [False, True]:
      self._test_variance(
          initializers.variance_scaling_initializer,
          shape=[100, 40],
          variance=2. / 100.,
          factor=2.0,
          mode='FAN_IN',
          uniform=uniform)