[GPU] Fix activation fusing issue(#10636) (#10636)

This commit is contained in:
Paul Youngsoo Ahn 2022-02-24 22:07:33 +09:00 committed by GitHub
parent 1c18733ade
commit 163a79b232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1076,7 +1076,7 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
(!(user->is_type<eltwise>() && user->get_primitive()->input.size() == 2 &&
(std::find(supported_modes.begin(), supported_modes.end(),
(user->as<eltwise>()).get_primitive()->mode) != supported_modes.end())) &&
!(user->is_type<activation>() && user->get_primitive()->input.size() == 1)));
!(user->is_type<activation>() && user->get_dependency(0).get_users().size() == 1)));
});
if (invalid_user_iter != curr_users.end()) {