Ejemplo n.º 1
0
 def testRangeInitializer(self):
   shape = (20, 6, 7)
   self._range_test(
       init_ops_v2.RandomUniform(minval=-1, maxval=1, seed=124),
       shape,
       target_mean=0.,
       target_max=1,
       target_min=-1)
Ejemplo n.º 2
0
 def testRangeInitializer(self):
   self.skipTest("b/161580897")
   shape = (9, 6, 7)
   self._range_test(
       init_ops_v2.RandomUniform(minval=-1, maxval=1, seed=124),
       shape,
       target_mean=0.,
       target_max=1,
       target_min=-1)
Ejemplo n.º 3
0
 def testInitializePartition(self):
   init = init_ops_v2.RandomUniform(0, 7, seed=1)
   self._partition_test(init)
Ejemplo n.º 4
0
 def testDuplicatedInitializer(self):
   init = init_ops_v2.RandomUniform(0.0, 1.0)
   self._duplicated_test(init)
Ejemplo n.º 5
0
 def testInitializerDifferent(self):
   init1 = init_ops_v2.RandomUniform(0, 7, seed=1)
   init2 = init_ops_v2.RandomUniform(0, 7, seed=2)
   self._identical_test(init1, init2, False)
Ejemplo n.º 6
0
 def testInitializerIdentical(self):
   self.skipTest("Doesn't work without the graphs")
   init1 = init_ops_v2.RandomUniform(0, 7, seed=1)
   init2 = init_ops_v2.RandomUniform(0, 7, seed=1)
   self._identical_test(init1, init2, True)