@@ -341,7 +341,7 @@ def testBetaincDerivativeVerySmallFloat(self):
341
341
x = self .evaluate (x )
342
342
343
343
self ._testBetaincDerivative (
344
- a , b , x , rtol_a = 6e-3 , rtol_b = 4e-3 , rtol_x = 1e-5 )
344
+ a , b , x , rtol_a = 0.05 , rtol_b = 0.05 , rtol_x = 1e-5 )
345
345
346
346
@test_util .numpy_disable_gradient_test
347
347
def testBetaincDerivativeSmallFloat (self ):
@@ -357,9 +357,7 @@ def testBetaincDerivativeSmallFloat(self):
357
357
x = self .evaluate (x )
358
358
359
359
self ._testBetaincDerivative (
360
- a , b , x ,
361
- atol_a = 4e-5 , atol_b = 2e-4 , atol_x = 2e-4 ,
362
- rtol_a = 1e-5 , rtol_b = 1e-5 , rtol_x = 1e-5 )
360
+ a , b , x , atol_a = 1e-3 , atol_b = 1e-3 , atol_x = 0.01 )
363
361
364
362
@test_util .numpy_disable_gradient_test
365
363
def testBetaincDerivativeFloat (self ):
@@ -375,9 +373,7 @@ def testBetaincDerivativeFloat(self):
375
373
x = self .evaluate (x )
376
374
377
375
self ._testBetaincDerivative (
378
- a , b , x ,
379
- atol_a = 7e-6 , atol_b = 9e-5 , atol_x = 4e-4 ,
380
- rtol_a = 1e-5 , rtol_b = 1e-5 , rtol_x = 1e-5 )
376
+ a , b , x , atol_a = 1e-3 , atol_b = 1e-3 , atol_x = 1e-3 )
381
377
382
378
@test_util .numpy_disable_gradient_test
383
379
def testBetaincDerivativeVerySmallDouble (self ):
@@ -392,7 +388,8 @@ def testBetaincDerivativeVerySmallDouble(self):
392
388
high = np .float64 (1. )).sample (100 , strm ())
393
389
x = self .evaluate (x )
394
390
395
- self ._testBetaincDerivative (a , b , x )
391
+ self ._testBetaincDerivative (
392
+ a , b , x , rtol_a = 1e-11 , rtol_b = 1e-11 , rtol_x = 1e-13 )
396
393
397
394
@test_util .numpy_disable_gradient_test
398
395
def testBetaincDerivativeSmallDouble (self ):
@@ -407,7 +404,8 @@ def testBetaincDerivativeSmallDouble(self):
407
404
high = np .float64 (1. )).sample (100 , strm ())
408
405
x = self .evaluate (x )
409
406
410
- self ._testBetaincDerivative (a , b , x )
407
+ self ._testBetaincDerivative (
408
+ a , b , x , atol_a = 1e-12 , atol_b = 1e-12 , atol_x = 1e-11 )
411
409
412
410
@test_util .numpy_disable_gradient_test
413
411
def testBetaincDerivativeDouble (self ):
@@ -422,7 +420,8 @@ def testBetaincDerivativeDouble(self):
422
420
high = np .float64 (1. )).sample (100 , strm ())
423
421
x = self .evaluate (x )
424
422
425
- self ._testBetaincDerivative (a , b , x )
423
+ self ._testBetaincDerivative (
424
+ a , b , x , atol_a = 1e-12 , atol_b = 1e-12 , atol_x = 1e-10 )
426
425
427
426
@parameterized .parameters (np .float32 , np .float64 )
428
427
@test_util .numpy_disable_gradient_test
0 commit comments