Exemple #1
0
 def test_he_initializer_scale_slope_relu(self):
   self.assertAlmostEqual(
       layers.he_initializer_scale([3, 4, 5, 6], 0.0), 0.1825742, 5)
Exemple #2
0
 def test_he_initializer_scale_slope_linear(self):
   self.assertAlmostEqual(
       layers.he_initializer_scale([3, 4, 5, 6], 1.0), 0.1290994, 5)