[GPU] modify fusing condition for reduce (#12119)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
This commit is contained in:
parent
3c1ed2ce1f
commit
99dbb35835
@ -624,7 +624,8 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
|
|||||||
(find(axes.begin(), axes.end(), reduce::along_y) != axes.end() &&
|
(find(axes.begin(), axes.end(), reduce::along_y) != axes.end() &&
|
||||||
node.input().get_output_layout().spatial(1) > 16) ||
|
node.input().get_output_layout().spatial(1) > 16) ||
|
||||||
(find(axes.begin(), axes.end(), reduce::along_f) != axes.end() &&
|
(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;
|
return false;
|
||||||
|
|
||||||
if (keep_dims)
|
if (keep_dims)
|
||||||
|
Loading…
Reference in New Issue
Block a user