-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[GPU] to use original dims for fc_onednn_impl #30087
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
Conversation
956fba1
to
f9a5278
Compare
<< orig_impl_param.typed_desc<fully_connected>()->id | ||
<< " " << input_shape | ||
<< " + " << fuse_op_input_shape << std::endl; | ||
can_apply_fake_alignment = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: I think we can add a reshape for this case in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I'll try it in the future as you reviewed. Thank you!
@@ -66,14 +66,14 @@ format::type get_preferred_format(fully_connected_node const& node, const kernel | |||
} | |||
|
|||
if (input_layout.data_type == data_types::f32 && | |||
(input_layout.format == format::bfyx || input_layout.format == format::bfzyx) && | |||
(input_layout.format == format::bfyx || input_layout.format == format::bfzyx || input_layout.format == format::bfwzyx) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: You can use one_of(input_layout.format, format::bfyx, format::bfzyx, format::bfwzyx)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated as you reviewed. Thank you.
src/plugins/intel_gpu/tests/unit/test_cases/fully_connected_gpu_test.cpp
Show resolved
Hide resolved
group_size = ifm / ngroups; | ||
if (!is_four_bit_weight) { | ||
// 8-bit quantized weight | ||
attr->set_scales(DNNL_ARG_WEIGHTS, PER_OC, dnnl::memory::dims{}, ds_data_type); | ||
attr->set_scales(DNNL_ARG_WEIGHTS, (PER_OC << shift_size), dnnl::memory::dims{}, ds_data_type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: what about introducing a local variable per_oc = PER_OC << shift_size
? That will reduce duplicated expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated as you reviewed. Thank you.
src/plugins/intel_gpu/src/graph/impls/onednn/fully_connected_onednn.cpp
Outdated
Show resolved
Hide resolved
a1e95d1
to
4d8f7dd
Compare
4d8f7dd
to
4b0097b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no perf issue from dgpu static-shape daily test
Details:
Tickets: