Created
March 11, 2025 18:18
-
-
Save bjacob/98549902957e8171373ffceed5611411 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/tests/e2e/math/math_ops_llvm-cpu.json b/tests/e2e/math/math_ops_rocm.json | |
| index 57e8c422a7..fc4a6c964a 100644 | |
| --- a/tests/e2e/math/math_ops_llvm-cpu.json | |
| +++ b/tests/e2e/math/math_ops_rocm.json | |
| @@ -8,8 +8,8 @@ | |
| { | |
| "op": "acos", | |
| "type": "f16", | |
| - "atol": 1.0e-02, | |
| - "rtol": 1.0e-02 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "acosh", | |
| @@ -20,8 +20,8 @@ | |
| { | |
| "op": "acosh", | |
| "type": "f16", | |
| - "atol": 1.0e-03, | |
| - "rtol": 1.0e-03 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "asin", | |
| @@ -38,14 +38,14 @@ | |
| { | |
| "op": "asinh", | |
| "type": "f32", | |
| - "atol": 1.0e-05, | |
| - "rtol": 1.0e-05 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "asinh", | |
| "type": "f16", | |
| - "atol": 5.0e-02, | |
| - "rtol": 5.0e-02 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "atan", | |
| @@ -56,8 +56,8 @@ | |
| { | |
| "op": "atan", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "atanh", | |
| @@ -68,20 +68,20 @@ | |
| { | |
| "op": "atanh", | |
| "type": "f16", | |
| - "atol": 1.0e-03, | |
| - "rtol": 1.0e-03 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "cbrt", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "cbrt", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "ceil", | |
| @@ -98,29 +98,26 @@ | |
| { | |
| "op": "cos", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "cos", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "cosh", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "cosh", | |
| "type": "f16", | |
| - "atol": 1.0e-03, | |
| - "rtol": 1.0e-03, | |
| - "xmin": -8, | |
| - "xmax": 8, | |
| - "comment": "discrepancy at switch between large-finite and infinite values" | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "erf", | |
| @@ -131,8 +128,8 @@ | |
| { | |
| "op": "erf", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "exp", | |
| @@ -143,21 +140,20 @@ | |
| { | |
| "op": "exp", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "exp2", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "exp2", | |
| "type": "f16", | |
| - "atol": 0.25, | |
| - "comment": "TODO(#20163)", | |
| - "rtol": 1.0e-02 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "expm1", | |
| @@ -168,8 +164,8 @@ | |
| { | |
| "op": "expm1", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "floor", | |
| @@ -186,14 +182,14 @@ | |
| { | |
| "op": "log", | |
| "type": "f32", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "log", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "log1p", | |
| @@ -204,8 +200,8 @@ | |
| { | |
| "op": "log1p", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "log2", | |
| @@ -216,8 +212,8 @@ | |
| { | |
| "op": "log2", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "round", | |
| @@ -258,29 +254,26 @@ | |
| { | |
| "op": "sin", | |
| "type": "f32", | |
| - "atol": 1.0e-05, | |
| - "rtol": 1.0e-05 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "sin", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "sinh", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "sinh", | |
| "type": "f16", | |
| - "atol": 1.0e-03, | |
| - "rtol": 1.0e-03, | |
| - "xmin": -8, | |
| - "xmax": 8, | |
| - "comment": "discrepancy at switch between large-finite and infinite values" | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "sqrt", | |
| @@ -291,14 +284,14 @@ | |
| { | |
| "op": "sqrt", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "tan", | |
| "type": "f32", | |
| - "atol": 1.0e-05, | |
| - "rtol": 1.0e-03 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "tan", | |
| @@ -309,26 +302,26 @@ | |
| { | |
| "op": "tanh", | |
| "type": "f32", | |
| - "atol": 1.0e-06, | |
| - "rtol": 1.0e-06 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "tanh", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "atan2", | |
| "type": "f32", | |
| - "atol": 1.0e-05, | |
| - "rtol": 1.0e-05 | |
| + "atol": 1.2e-07, | |
| + "rtol": 1.2e-07 | |
| }, | |
| { | |
| "op": "atan2", | |
| "type": "f16", | |
| - "atol": 1.0e-04, | |
| - "rtol": 1.0e-04 | |
| + "atol": 0, | |
| + "rtol": 0 | |
| }, | |
| { | |
| "op": "powf", | |
| @@ -339,8 +332,7 @@ | |
| { | |
| "op": "powf", | |
| "type": "f16", | |
| - "atol": 0.25, | |
| - "comment": "TODO(#20163)", | |
| - "rtol": 5.0e-03 | |
| + "atol": 1.0e-03, | |
| + "rtol": 1.0e-03 | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment