From e4b08ffbe457c8932740e3171964cf2e7cd69b4f Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 15 Sep 2022 10:38:17 +0100 Subject: Initial set up of Main Inference conformance test gen tosa-verif-build-tests - option for setting FP values range - option for recursively finding tests - change from os.path to Path tosa_verif_result_check - option to supply FP tolerance - output difference and max tolerance on contents mismatch - change from os.path to Path MI conformance - contains examples of AVG_POOL2D and CONV2D tests Signed-off-by: Jeremy Johnson Change-Id: I8e1645cd8f10308604400ea53eef723ca163eed7 --- verif/conformance/tosa_main_profile_ops_info.json | 96 +++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 verif/conformance/tosa_main_profile_ops_info.json (limited to 'verif/conformance/tosa_main_profile_ops_info.json') diff --git a/verif/conformance/tosa_main_profile_ops_info.json b/verif/conformance/tosa_main_profile_ops_info.json new file mode 100644 index 0000000..656cdde --- /dev/null +++ b/verif/conformance/tosa_main_profile_ops_info.json @@ -0,0 +1,96 @@ +{ + "avg_pool2d": { + "group": "tensor", + "generator_args": [ + [ + "--target-dtype", + "fp32", + "--target-dtype", + "fp16", + "--target-dtype", + "bf16", + "--fp-values-range", + "-2.0,2.0", + "--target-shape", + "1,49,42,28", + "--target-shape", + "3,11,44,3", + "--allow-pooling-and-conv-oversizes" + ], + [ + "--target-dtype", + "fp32", + "--fp-values-range", + "-2.0,2.0", + "--target-shape", + "1,65535,5,1", + "--target-shape", + "1,3,65537,1", + "--allow-pooling-and-conv-oversizes" + ] + ], + "params": { + }, + "permutes": [ + "shape", + "type", + "accum_type" + ], + "sparsity": { + "pad": 17 + }, + "profile": [ + "tosa-mi" + ] + }, + "conv2d": { + "group": "tensor", + "generator_args": [ + [ + "--target-dtype", + "fp32", + "--target-dtype", + "fp16", + "--target-dtype", + "bf16", + "--fp-values-range", + "-2.0,2.0", + "--target-shape", + "1,49,42,28", + "--target-shape", + "1,11,44,13", + "--allow-pooling-and-conv-oversizes" + ], + [ + "--target-dtype", + "fp32", + "--fp-values-range", + "-2.0,2.0", + "--target-shape", + "1,65535,4,1", + "--target-shape", + "1,5,65536,1", + "--max-conv-dilation", + "1", + "--allow-pooling-and-conv-oversizes" + ] + ], + "params": { + "shape": [], + "type": [], + "kernel": [], + "stride": [], + "pad": [], + "dilation": [] + }, + "permutes": [ + "kernel", + "shape", + "type", + "pad" + ], + "profile": [ + "tosa-mi" + ] + } +} \ No newline at end of file -- cgit v1.2.1