Skip to content

Commit

Permalink
[GPU] fix bad_fuction call issue (openvinotoolkit#27517)
Browse files Browse the repository at this point in the history
### Details:
- *Fix bad_function call issue which is caused by creating empty
kernel_data*
- Reverting some change applied at
openvinotoolkit#27439
 - To be investigated and fixed in the next PR 


### Tickets:
 - *154591*
  • Loading branch information
ahnyoung-paul authored and NishantPrabhuFujitsu committed Nov 26, 2024
1 parent 3b6298e commit 435fe39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/intel_gpu/src/graph/impls/ocl/primitive_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ struct typed_primitive_impl_ocl : public typed_primitive_impl<PType> {
static std::unique_ptr<primitive_impl> create(const typed_program_node<PType>& arg, const kernel_impl_params& impl_param) {
// concat buffer fusing for dynamic shape is adaptively applied at runtime. So we need to build dynamic impl at build time.
if (impl_param.can_be_optimized() &&
!((impl_param.runtime_skippable() || impl_param.is_type<crop>()) &&
impl_param.is_dynamic())) {
!((impl_param.is_type<concatenation>() ||
impl_param.is_type<strided_slice>() ||
impl_param.is_type<crop>() ||
impl_param.runtime_skippable()) && impl_param.is_dynamic())) {
return make_unique<ImplType>(kernel_selector::kernel_data{});
}
auto kernel_params = ImplType::get_kernel_params(ImplType::static_canonicalize_shapes(impl_param));
Expand Down

0 comments on commit 435fe39

Please sign in to comment.