Exemplo n.º 1
0
 def testErfcinv(self):
     if test.is_built_with_rocm():
         # The implementation of erfcinv calls ndtri op,
         # and the ROCm implementaion for ndtri op has a known bug in it
         # whose fix will be in a forthcoming ROCm release (4.0 ?).
         # Need to skip this unit-test until that ROCm release is out
         self.skipTest("ndtri op implementation is buggy on ROCm")
     values = np.random.uniform(0.1, 1.9, size=int(1e4)).astype(np.float32)
     approx_id = math_ops.erfc(math_ops.erfcinv(values))
     self.assertAllClose(values, self.evaluate(approx_id))
Exemplo n.º 2
0
 def testErfcinv(self):
     values = np.random.uniform(0.1, 1.9, size=int(1e4)).astype(np.float32)
     approx_id = math_ops.erfc(math_ops.erfcinv(values))
     self.assertAllClose(values, self.evaluate(approx_id))