aboutsummaryrefslogtreecommitdiff
path: root/verif/generator/tosa_test_gen.py
diff options
context:
space:
mode:
authorevacha01 <evan.chandler@arm.com>2024-02-07 11:21:55 +0000
committerevacha01 <evan.chandler@arm.com>2024-03-07 12:06:38 +0000
commit9c96eefbaca6c85be79529bce7ff04fd7dfe3a0d (patch)
tree55647ee0216800b621bd0b27277c6f895929ef3d /verif/generator/tosa_test_gen.py
parent6e1e2bc06bff785e87577f24064bbc846300f8fd (diff)
downloadreference_model-9c96eefbaca6c85be79529bce7ff04fd7dfe3a0d.tar.gz
FULL data gen mode for FP16
Signed-off-by: evacha01 <evan.chandler@arm.com> Change-Id: I81bb322132daf25328a40342edc62d8e1db9edd6
Diffstat (limited to 'verif/generator/tosa_test_gen.py')
-rw-r--r--verif/generator/tosa_test_gen.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/verif/generator/tosa_test_gen.py b/verif/generator/tosa_test_gen.py
index 415858c..a1f54c6 100644
--- a/verif/generator/tosa_test_gen.py
+++ b/verif/generator/tosa_test_gen.py
@@ -365,7 +365,7 @@ class TosaTestGen:
if "ksb" in argsDict
else int(argsDict["ks"]),
}
- elif argsDict["dg_type"] == gtu.DataGenType.OP_SPECIAL:
+ elif argsDict["dg_type"] == gtu.DataGenType.SPECIAL:
mode = gtu.ComplianceMode.FP_SPECIAL
elif "compliance" in op and "ulp" in op["compliance"]:
mode = gtu.ComplianceMode.ULP
@@ -3959,7 +3959,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
},
"bitwise_not": {
@@ -3996,7 +3996,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
"compliance": {"ulp": 0.5},
},
@@ -4055,7 +4055,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
},
"floor": {
@@ -4075,7 +4075,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
"compliance": {"ulp": 0.5},
},
@@ -4096,7 +4096,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
"compliance": {"ulp": 5},
},
@@ -4137,7 +4137,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
},
"reciprocal": {
@@ -4157,7 +4157,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
"compliance": {"ulp": 1.0},
},
@@ -4178,7 +4178,7 @@ class TosaTestGen:
TosaErrorValidator.evWrongOutputList,
),
"data_gen": {
- "fp": (gtu.DataGenType.PSEUDO_RANDOM,),
+ "fp": (gtu.DataGenType.FULL_RANGE,),
},
"compliance": {"ulp": 2},
},