From 63ad769939dd8307935caac67c0fc7c9bc9206de Mon Sep 17 00:00:00 2001 From: "Wierschem, Keola" Date: Wed, 28 Dec 2022 23:04:00 -0800 Subject: [PATCH] benchdnn: inputs: add regression tests for brgconv w/ postops kernel --- .../conv/harness_conv_regression_general | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/benchdnn/inputs/conv/harness_conv_regression_general b/tests/benchdnn/inputs/conv/harness_conv_regression_general index 3ccba25535b..050f95dfaff 100644 --- a/tests/benchdnn/inputs/conv/harness_conv_regression_general +++ b/tests/benchdnn/inputs/conv/harness_conv_regression_general @@ -323,3 +323,22 @@ mb1ic8iw9973oc256ow9973kw9pw2n"brgconv_compensation_bdb_tail" mb1_ic1oc1_ih1kh1ph1_iw1kw1_n"brgemm_conv_comp_pad:1" --cfg=u8s8u8 --attr-zero-points=src0:common:1* g3mb2_ic6oc96_ih12oh8kh1sh2dh1ph2_iw11ow7kw4sw1dw1pw1_n"brgemm_conv_comp_pad:2" + +# test correct creation of post_op jit kernel for sum+elem-wise operation +--reset +--dir=FWD_I --cfg=u8s8f32 +--stag=acdb --wtag=any --dtag=acdb +--attr-post-ops=sum+relu +mb1_ic5oc5_ih12oh7kh1sh2dh0ph1_iw12ow4kw7sw2dw0pw1_n"brgemm_post-op-jit_elemwise-op:1" +mb1_ic2oc2_ih10oh12kh1sh1dh0ph1_iw7ow4kw2sw2dw0pw1_n"brgemm_post-op-jit_elemwise-op:2" +g90mb1_ic360oc180_ih12oh16kh1sh1dh1ph2_iw14ow7kw3sw2dw1pw2_n"brgemm_post-op-jit_elemwise-op:3" + +# test correct creation of post_op jit kernel for sum operation with zero points +--reset +--dir=FWD_I --cfg=u8s8u8 +--stag=acdb --wtag=any --dtag=acdb +--attr-post-ops=sum +--attr-zero-points=dst:common:2* +mb1_ic2oc2_ih10oh12kh1sh1dh0ph1_iw7ow7kw1sw1dw0pw0_n"brgemm_post-op-jit_sum-with-zp:1" +--attr-zero-points=dst:common:2*+src:common:1* +mb1ic2ih10iw7oc2oh6ow4kh1kw1sh2sw2ph1pw0dh1dw1_n"brgemm_post-op-jit_sum-with-zp:2"