|
@@ -568,12 +568,14 @@ def add_test_cases():
|
|
|
]], [[
|
|
|
'NaN', 'NaN', '-0', '-0', '0', '0', 'NaN', '-0.0007346401',
|
|
|
'0.0007346401'
|
|
|
- ]], "unary float", "sin", half_inputs=[[
|
|
|
- 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '-314',
|
|
|
- '314'
|
|
|
+ ]], "unary float", "sin", half_validation_tolerance=0.003, half_inputs=[[
|
|
|
+ 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf',
|
|
|
+ '0.6279297', '1.255859', '1.884766', '2.511719', '3.140625',
|
|
|
+ '3.769531', '4.398438', '5.023438', '5.652344', '6.281250'
|
|
|
]], half_outputs=[[
|
|
|
- 'NaN', 'NaN', '-0', '-0', '0', '0', 'NaN', '0.1585929',
|
|
|
- '-0.1585929'
|
|
|
+ 'NaN', 'NaN', '-0', '-0', '0', '0', 'NaN',
|
|
|
+ '0.58747065', '0.95081574', '0.95111507', '0.58904284', '0.00096773',
|
|
|
+ '-0.58747751', '-0.95112079', '-0.95201313', '-0.58982444', '-0.00193545'
|
|
|
]])
|
|
|
add_test_case_float_half('Cos', ['Cos'], 'Epsilon', 0.0008, [[
|
|
|
'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '-314.16',
|
|
@@ -581,12 +583,14 @@ def add_test_cases():
|
|
|
]], [[
|
|
|
'NaN', 'NaN', '1.0', '1.0', '1.0', '1.0', 'NaN', '0.99999973015',
|
|
|
'0.99999973015'
|
|
|
- ]], "unary float", "cos", half_inputs=[[
|
|
|
- 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '-314',
|
|
|
- '314'
|
|
|
+ ]], "unary float", "cos", half_validation_tolerance=0.003, half_inputs=[[
|
|
|
+ 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf',
|
|
|
+ '0.6279297', '1.255859', '1.884766', '2.511719', '3.140625',
|
|
|
+ '3.769531', '4.398438', '5.023438', '5.652344', '6.281250'
|
|
|
]], half_outputs=[[
|
|
|
- 'NaN', 'NaN', '1.0', '1.0', '1.0', '1.0', 'NaN', '0.987344',
|
|
|
- '0.987344'
|
|
|
+ 'NaN', 'NaN', '1.0', '1.0', '1.0', '1.0', 'NaN',
|
|
|
+ '0.80924553', '0.30975693', '-0.30883664', '-0.80810183', '-0.99999952',
|
|
|
+ '-0.80924052', '-0.30881903', '0.30605716', '0.80753154', '0.99999809'
|
|
|
]])
|
|
|
add_test_case_float_half('Tan', ['Tan'], 'Epsilon', 0.0008, [[
|
|
|
'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '-314.16',
|
|
@@ -594,12 +598,14 @@ def add_test_cases():
|
|
|
]], [[
|
|
|
'NaN', 'NaN', '-0.0', '-0.0', '0.0', '0.0', 'NaN', '-0.000735',
|
|
|
'0.000735'
|
|
|
- ]], "unary float", "tan", half_inputs=[[
|
|
|
- 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '-314',
|
|
|
- '314'
|
|
|
+ ]], "unary float", "tan", half_validation_tolerance=0.016, half_inputs=[[
|
|
|
+ 'NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf',
|
|
|
+ '0.6279297', '1.255859', '1.884766', '2.511719', '3.140625',
|
|
|
+ '3.769531', '4.398438', '5.652344', '6.281250'
|
|
|
]], half_outputs=[[
|
|
|
- 'NaN', 'NaN', '-0', '-0', '0', '0', 'NaN', '0.1606257',
|
|
|
- '-0.1606257'
|
|
|
+ 'NaN', 'NaN', '-0', '-0', '0', '0', 'NaN',
|
|
|
+ '0.72594857', '3.06955433', '-3.07967043', '-0.72892153', '-0.00096773',
|
|
|
+ '0.72596157', '3.07986474', '-0.7304042', '-0.00193546'
|
|
|
]])
|
|
|
add_test_case_float_half('Hcos', ['Hcos'], 'Epsilon', 0.0008,
|
|
|
[['NaN', '-Inf', '-denorm', '-0', '0', 'denorm', 'Inf', '1', '-1']], [[
|