From aa3df8b80d7202b7594d7787a3fb55b403668913 Mon Sep 17 00:00:00 2001 From: wujunhow <769708152@qq.com> Date: Fri, 14 Jun 2024 10:01:15 +0800 Subject: [PATCH 1/2] add test case --- .../tests/benchdnn/inputs/kdnn/perf/eltwise/{size_16 => sizes_16} | 0 .../tests/benchdnn/inputs/kdnn/perf/eltwise/{size_32 => sizes_32} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/{size_16 => sizes_16} (100%) rename oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/{size_32 => sizes_32} (100%) diff --git a/oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/size_16 b/oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/sizes_16 similarity index 100% rename from oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/size_16 rename to oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/sizes_16 diff --git a/oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/size_32 b/oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/sizes_32 similarity index 100% rename from oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/size_32 rename to oneDNN-3.4/tests/benchdnn/inputs/kdnn/perf/eltwise/sizes_32 -- Gitee From e30f055f8c3ea6b2c9b897c990978c9c3de42c39 Mon Sep 17 00:00:00 2001 From: wujunhow <769708152@qq.com> Date: Fri, 14 Jun 2024 02:05:13 +0000 Subject: [PATCH 2/2] add test case Signed-off-by: wujunhow <769708152@qq.com> --- llt/inputs/eltwise/eltwise_func | 85 +++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 llt/inputs/eltwise/eltwise_func diff --git a/llt/inputs/eltwise/eltwise_func b/llt/inputs/eltwise/eltwise_func new file mode 100644 index 0000000..e2927b1 --- /dev/null +++ b/llt/inputs/eltwise/eltwise_func @@ -0,0 +1,85 @@ +# backward relu/logisti/linear +--dir=BWD_D +--dt=f32,f16,bf16 +--alg=linear,logistic,relu + +2x5x7x100 +2x5x7x101 +2x5x7x102 +2x5x7x103 +2x5x7x104 +2x5x7x105 +2x5x7x106 +2x5x7x107 +2x5x7x108 +2x5x7x109 +2x5x7x110 +2x5x7x111 +2x5x7x112 +7x113 +7x114 +7x115 +7x116 +7x117 +7x118 + +# varying layout +--dir=FWD_I +--dt=f32 +--alg=abs +--tag=ba +2x2 + +--dir=FWD_I +--dt=f32 +--alg=abs +--tag=bac,bca,cab,cba +11x2x2 + +--dir=FWD_I +--dt=f32 +--alg=logistic +--tag=acb +3x2x2 + +--dir=FWD_I +--dt=f32 +--alg=tanh +--tag=bacd,abdc,acbd,adbc,cdba,dcab +11x2x2x7 + +--dir=FWD_I +--dt=f32 +--alg=logistic +--tag=acdb +2x2x2x2 + +--dir=FWD_I +--dt=f32 +--alg=abs +--tag=acdb,adcb,bcda +2x2x2x1 + +--dir=FWD_I +--dt=f32 +--alg=linear +--tag=acbde,abdec,acbde,bacde,bcdea,cdeba,decab,abced +11x2x2x7x7 + +--dir=FWD_I +--dt=f32 +--alg=abs +--tag=acdeb +2x2x2x2x1 + +--dir=FWD_I +--dt=f32 +--alg=abs +--tag=acbdef +11x2x2x7x7x8 + +--dir=FWD_I +--dt=f32,f16 +--alg=abs +--tag=acbde +11x2x2x7x7 \ No newline at end of file -- Gitee