Skip to content

Commit

Permalink
gpu: jit: conv: fix invalid access with zero-points
Browse files Browse the repository at this point in the history
  • Loading branch information
echeresh committed Apr 27, 2023
1 parent 97ac885 commit 85e58af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/jit/conv/zp_plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class zp_comp_init_plan_t : public base_plan_t {

stmt_t create_tile_wei_Xy_s16(
const expr_t &zp, const expr_t &wei, const expr_t &comp) const {
int zp_stride = is_zp_common() ? 0 : 1;
int zp_stride = (kind_ == zp_comp_kind_t::wei_Xb_s16) ? 1 : 0;
int wei_stride = 2;
auto zp_type = zp_layout_.type();
auto wei_type = wei_layout_.type();
Expand Down

0 comments on commit 85e58af

Please sign in to comment.