File tree 4 files changed +23
-1
lines changed
src/plugins/intel_gpu/src/graph
4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 5
5
#include " impls/registry/implementation_manager.hpp"
6
6
#include " program_node.h"
7
7
// #include "intel_gpu/primitives/resample.hpp"
8
+ #include " resample_inst.h"
8
9
9
10
#include < memory>
10
11
namespace cldnn {
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<resam
37
37
// [](const cldnn::program_node& node){
38
38
// return false;
39
39
// })
40
-
41
40
OV_GPU_GET_INSTANCE_CPU (resample, shape_types::static_shape,
42
41
[](const cldnn::program_node& node){
43
42
return true ;
@@ -46,6 +45,18 @@ const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<resam
46
45
// [](const cldnn::program_node& node){
47
46
// return false;
48
47
// })
48
+
49
+
50
+ // OV_GPU_GET_INSTANCE_OCL(resample, shape_types::static_shape, not_in_shape_flow())
51
+ // OV_GPU_GET_INSTANCE_OCL(resample, shape_types::dynamic_shape, not_in_shape_flow())
52
+ // OV_GPU_GET_INSTANCE_CPU(resample, shape_types::static_shape, in_shape_flow())
53
+ // OV_GPU_GET_INSTANCE_CPU(resample, shape_types::dynamic_shape, in_shape_flow())
54
+
55
+
56
+ // OV_GPU_CREATE_INSTANCE_OCL(ocl::ResampleImplementationManager, shape_types::static_shape, not_in_shape_flow())
57
+ // //OV_GPU_CREATE_INSTANCE_OCL(ocl::ResampleImplementationManager, shape_types::dynamic_shape, not_in_shape_flow())
58
+ // OV_GPU_GET_INSTANCE_CPU(resample, shape_types::static_shape, in_shape_flow())
59
+ // //OV_GPU_GET_INSTANCE_CPU(resample, shape_types::dynamic_shape, in_shape_flow())
49
60
};
50
61
51
62
return impls;
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ struct primitive_type_base : primitive_type {
46
46
47
47
std::shared_ptr<ImplementationManager> choose_impl (const program_node& node, shape_types requested_shape_type) const override {
48
48
OPENVINO_ASSERT (node.type () == this , " [GPU] primitive_type_base::choose_impl: primitive type mismatch" );
49
+ // if (node.id().find("interpolate:Interpolate") != std::string::npos)
50
+ // std::cout << "=============================================" << node.id() << std::endl;
49
51
for (auto & impl : get_supported_implementations (node)) {
50
52
impl_types impl_type = impl->get_impl_type ();
51
53
if ((node.get_forced_impl_type () & impl_type) != impl_type)
@@ -58,6 +60,7 @@ struct primitive_type_base : primitive_type {
58
60
if ((requested_shape_type & supported_shape_type) != requested_shape_type && requested_shape_type != shape_types::any)
59
61
continue ;
60
62
63
+ // std::cout << "=== choose_impl " << node.id() << ", impl_type=" << impl_type << std::endl;
61
64
return impl;
62
65
}
63
66
return nullptr ;
Original file line number Diff line number Diff line change @@ -1792,6 +1792,10 @@ void primitive_inst::prepare_primitive() {
1792
1792
}
1793
1793
GPU_DEBUG_TRACE_DETAIL << " -----------------------------------------------------------------" << std::endl;
1794
1794
1795
+ // if (this->get_node().id().find("__module.depth_head.scratch.refinenet1/aten::upsample_bilinear2d/Interpolate") != std::string::npos) {
1796
+ // std::cout << "=============" << std::endl;
1797
+ // std::cout << "=============primitive_inst::prepare_primitive() " << this->get_node().id() << ", impl_type=" << this->_impl->m_manager->get_impl_type() << std::endl;
1798
+ // }
1795
1799
// If it is optimized out or skipped for zero dimension at the previous iteration,
1796
1800
// Set this flag true to reset output memory in realloc_if_needed.
1797
1801
const bool prev_execution_skipped = can_be_optimized ()
@@ -1972,6 +1976,9 @@ void primitive_inst::execute() {
1972
1976
1973
1977
set_out_event (_impl->execute (_impl_params->dep_events , *this ));
1974
1978
1979
+ // if (this->get_node().id().find("__module.depth_head.scratch.refinenet1/aten::upsample_bilinear2d/Interpolate") != std::string::npos)
1980
+ // std::cout << "=============primitive_inst::execute() " << this->get_node().id() << ", impl_type=" << this->_impl->m_manager->get_impl_type() << std::endl;
1981
+
1975
1982
GPU_DEBUG_GET_INSTANCE (debug_config);
1976
1983
GPU_DEBUG_IF (!debug_config->dump_profiling_data .empty ()) {
1977
1984
auto ev = _impl_params->out_event ;
You can’t perform that action at this time.
0 commit comments