Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inner product failure when original weight is f16 and oc is 1 #278

Open
wants to merge 1 commit into
base: v3.6_for_ie_master
Choose a base branch
from

Conversation

mangguo321
Copy link
Collaborator

Description

Fix inner product failure when original weight is f16 and oc is 1

Fixes # (CVS-160653)

@@ -525,7 +525,7 @@ status_t jit_brgemm_ip_fwd_conf_t::init_conf(cpu_isa_t isa,
jbgp.nb_ic = div_up(jbgp.ic, jbgp.ic_block);

// gemm-based inner product performs better when oc = 1
if (is_f32_compute && jbgp.oc == 1) return status::unimplemented;
if (is_f32_compute && jbgp.oc == 1 && jbgp.orig_wei_dt != f16) return status::unimplemented;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet we should fix the condition not only for fp16 weights, but for all weights compression cases (jbgp.weights_decompression == true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants