Skip to content

Commit

Permalink
gpu: ocl: post_ops: fixup typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dyoussif authored and karturov committed May 31, 2023
1 parent 7fa3b6f commit ad3c62f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gpu/ocl/ocl_post_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ float fwd_Xnary(unsigned algorithm, float x, float y, float alpha, float beta,
unroll_for(typeof(out_len + 0) idx = 0; idx < out_len; ++idx) { \
const int arg0_idx = arg0_len == 1 ? 0 : idx; \
const int arg1_idx = arg1_len == 1 ? 0 : idx; \
res_ptr[idx] = fwd_Xnary(algorithm, convert_float(arg0_ptr[idx]), \
convert_float(arg1_ptr[idx]), alpha, beta, scale); \
res_ptr[arg0_len == 1 && arg1_len == 1 ? 0 : idx] = fwd_Xnary( \
po_kind, algorithm, convert_float(arg0_ptr[arg0_idx]), \
convert_float(arg1_ptr[arg1_idx]), alpha, beta, scale); \
} \
}

Expand Down

0 comments on commit ad3c62f

Please sign in to comment.