Skip to content

Commit

Permalink
gpu: matmul: remove unnecessary bias dt condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem authored and vpirogov committed Jun 25, 2024
1 parent 10d1227 commit 75b3946
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gpu/intel/ocl/ref_matmul.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ struct ref_matmul_t : public gpu_primitive_t {
&& utils::one_of(dst_dt_, bf16, f32);
const bool is_int8 = utils::one_of(src_dt_, u8, s8)
&& utils::one_of(wei_dt_, u8, s8, u4, s4)
&& utils::one_of(dst_dt_, f32, s8, u8, s32, f16)
&& IMPLICATION(
with_bias(), utils::one_of(bia_dt_, f32, dst_dt_));
&& utils::one_of(dst_dt_, f32, s8, u8, s32, f16);
VDISPATCH_MATMUL(
(is_int8
|| ((is_f32 || is_f64 || is_f16 || is_f8 || is_bf16)
Expand Down

0 comments on commit 75b3946

Please sign in to comment.