[GPU] Added WA for currently unsupported scale_shift_opt agnostic kernel (#15341)

This commit is contained in:
Roman Lyamin authored and GitHub committed 2023-01-27 16:47:35 +04:00
1 parent 9e54ac6518
commit 4089ee0899
1 file changed
+6
@@ -6,6 +6,7 @@
#include "data_inst.h"
#include "mutable_data_inst.h"
#include "reshape_inst.h"
#include "quantize_inst.h"
#include "program_node.h"
#include "intel_gpu/runtime/engine.hpp"
#include "intel_gpu/runtime/itt.hpp"
@@ -40,6 +41,11 @@ void compile_graph::run(program& p) {
if (node->is_type<reshape>() && node->is_dynamic() && !node->can_be_optimized())
can_select_impl = false;
// TODO: Remove this WA once we have shape agnostic quantize_scale_shift kernel
if (node->is_type<quantize>() && node->is_dynamic() && node->as<quantize>().get_scale_shift_opt()) {
can_select_impl = false;
}
// TODO: need to come up with better handling of unsupported shape agnostic cases
// e.g. process exceptions from choose_impl() and ignore those for dynamic parameters
if (node->is_type<fully_connected>() && node->is_dynamic() && node->get_output_layout().get_partial_shape().size() > 3)