def test_fan_avg(self):
    for uniform in [False, True]:
      self._test_variance(
          initializers.variance_scaling_initializer,
          shape=[100, 40],
          variance=4. / (100. + 40.),
          factor=2.0,
          mode='FAN_AVG',
          uniform=uniform)