Skip to content

Commit

Permalink
test: aarch64: Skip Jit uni reorder if 4d matrix and zero point is de…
Browse files Browse the repository at this point in the history
…fined

Change-Id: I837a8f66d8e8f6afce8e944416db96987e95abac
  • Loading branch information
Ryo-not-rio committed Nov 12, 2024
1 parent 1712f97 commit 46bea4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpu/aarch64/jit_uni_reorder_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,10 @@ status_t prb_init(prb_t &p, const memory_desc_t &imd, const memory_desc_t &omd,
verbose_t::debuginfo, "smpl : %s\n", prb_dump(p).c_str());
});

bool has_zero_point = !attr->zero_points_.has_default_values(DNNL_ARG_FROM)
|| !attr->zero_points_.has_default_values(DNNL_ARG_TO);
if (imd.ndims == 4 && has_zero_point) { return status::unimplemented; }

return success;
}

Expand Down
7 changes: 7 additions & 0 deletions tests/benchdnn/inputs/reorder/test_reorder_ci
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
--oflag=
2x16x3x4 1x17x5x3 30x1

# 4d reorders
--sdt=s8,u8
--ddt=f32
--attr-zero-points=src:common:-1
--stag=adbc
1x12x128x33

--reset
# compensation reorders without groups
--sdt=f32,s8,bf16
Expand Down

0 comments on commit 46bea4a

Please sign in to comment.