[GPU] Fix perf regression of #12113 (#12451)

* Disable fs_b_yx_fsv32 fusing for onednn case too
This commit is contained in:
Felix Dohyun Kim 2022-08-09 17:12:16 +09:00 committed by GitHub
parent 751337d428
commit ae1066a74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,9 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
auto eltwise_supports_fusings = [&](eltwise_node& node) -> bool {
auto out_layout = node.get_output_layout();
if (out_layout.data_type == data_types::f16 && out_layout.batch() > 1 &&
(_lo.get_optimization_attributes().fs_b_yx_fsv32_network || out_layout.format == format::fs_b_yx_fsv32)) {
((_lo.get_optimization_attributes().fs_b_yx_fsv32_network &&
!_lo.get_optimization_attributes().use_onednn_impls) ||
out_layout.format == format::fs_b_yx_fsv32)) {
return false;
}
return true;