Skip to content

Commit

Permalink
[CPU] windows_Interpolate_fused-FQ_nearest-mode_nspc-layout_fix (open…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhu-wang authored May 3, 2021
1 parent 7d2ec02 commit 0808975
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,13 @@ struct jit_uni_interpolate_kernel_f32 : public jit_uni_interpolate_kernel, publi
Xbyak::Label out_loop_label;
Xbyak::Label out_loop_end;

Xbyak::Reg64 reg_work_amount_bk = reg_src_aux2;
Xbyak::Reg64 reg_oc_off_bk = rsi;
mov(reg_work_amount_bk, ptr[reg_params + GET_OFF(work_amount)]);
if (attr_.post_ops_.len() != 0) {
mov(reg_oc_off_bk, ptr[reg_params + GET_OFF(oc_off)]);
}

Xbyak::Reg64 reg_work_amount_out = reg_src_aux1;
mov(reg_work_amount_out, jcp_.OW);
L(out_loop_label);
Expand All @@ -410,9 +417,9 @@ struct jit_uni_interpolate_kernel_f32 : public jit_uni_interpolate_kernel, publi
mov(reg_index_offset, dword[reg_index]);
add(reg_src_aux, reg_index_offset);

mov(reg_work_amount, ptr[reg_params + GET_OFF(work_amount)]);
mov(reg_work_amount, reg_work_amount_bk);
if (attr_.post_ops_.len() != 0)
mov(reg_oc_off, ptr[reg_params + GET_OFF(oc_off)]);
mov(reg_oc_off, reg_oc_off_bk);

L(nn_loop_label);
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ const std::vector<fusingSpecificParams> interpolateFusingParamsSet{
emptyFusingSpec,
fusingRelu,
fusingSwish,
fusingFakeQuantizePerChannelRelu,
};

std::vector<std::map<std::string, std::string>> filterAdditionalConfig() {
Expand Down

0 comments on commit 0808975

Please sign in to comment.