[GPU] modify fusing condition for reduce (#12119)

Signed-off-by: Min, Byungil <byungil.min@intel.com>
This commit is contained in:
Min, Byungil 2022-07-14 11:04:14 +09:00 committed by GitHub
parent 3c1ed2ce1f
commit 99dbb35835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -624,7 +624,8 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
(find(axes.begin(), axes.end(), reduce::along_y) != axes.end() &&
node.input().get_output_layout().spatial(1) > 16) ||
(find(axes.begin(), axes.end(), reduce::along_f) != axes.end() &&
node.input().get_output_layout().feature() > 16)))
node.input().get_output_layout().feature() > 16) ||
(node.get_output_layout().count() > 256)))
return false;
if (keep_dims)