program_node refactoring (#13576)

This commit is contained in:
Konstantin Beluchenko 2022-11-01 06:03:35 +02:00 committed by GitHub
parent ca31a4f1c7
commit d31c9b0b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 0 additions and 253 deletions

View File

@ -23,15 +23,6 @@ private:
} // namespace memory_state } // namespace memory_state
template<>
struct typed_program_node<assign> : public typed_program_node_base<assign> {
using parent = typed_program_node_base<assign>;
public:
using parent::parent;
const program_node& input(std::size_t index = 0) const { return get_dependency(index); }
};
using assign_node = typed_program_node<assign>; using assign_node = typed_program_node<assign>;
template<> template<>

View File

@ -11,15 +11,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<average_unpooling> : public typed_program_node_base<average_unpooling> {
using parent = typed_program_node_base<average_unpooling>;
public:
using parent::parent;
program_node& input() const { return get_dependency(0); }
};
using average_unpooling_node = typed_program_node<average_unpooling>; using average_unpooling_node = typed_program_node<average_unpooling>;
template <> template <>

View File

@ -10,15 +10,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<batch_to_space> : public typed_program_node_base<batch_to_space> {
using parent = typed_program_node_base<batch_to_space>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using batch_to_space_node = typed_program_node<batch_to_space>; using batch_to_space_node = typed_program_node<batch_to_space>;

View File

@ -11,16 +11,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<custom_gpu_primitive> : public typed_program_node_base<custom_gpu_primitive> {
using parent = typed_program_node_base<custom_gpu_primitive>;
public:
using parent::parent;
program_node& input(size_t idx = 0) const { return get_dependency(idx); }
};
using custom_gpu_primitive_node = typed_program_node<custom_gpu_primitive>; using custom_gpu_primitive_node = typed_program_node<custom_gpu_primitive>;
template <> template <>

View File

@ -10,15 +10,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<dft> : public typed_program_node_base<dft> {
using typed_program_node_base::typed_program_node_base;
program_node& input() const {
return get_dependency(0);
}
};
using dft_node = typed_program_node<dft>; using dft_node = typed_program_node<dft>;
template <> template <>

View File

@ -9,13 +9,6 @@
#include "primitive_inst.h" #include "primitive_inst.h"
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<experimental_detectron_roi_feature_extractor> : public typed_program_node_base<experimental_detectron_roi_feature_extractor> {
using parent = typed_program_node_base<experimental_detectron_roi_feature_extractor>;
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using experimental_detectron_roi_feature_extractor_node = typed_program_node<experimental_detectron_roi_feature_extractor>; using experimental_detectron_roi_feature_extractor_node = typed_program_node<experimental_detectron_roi_feature_extractor>;

View File

@ -10,15 +10,6 @@
namespace cldnn { namespace cldnn {
template<>
struct typed_program_node<experimental_detectron_topk_rois> : public typed_program_node_base<experimental_detectron_topk_rois> {
using parent = typed_program_node_base<experimental_detectron_topk_rois>;
public:
using parent::parent;
const program_node &input(std::size_t index = 0) const { return get_dependency(index); }
};
using experimental_detectron_topk_rois_node = typed_program_node<experimental_detectron_topk_rois>; using experimental_detectron_topk_rois_node = typed_program_node<experimental_detectron_topk_rois>;
template<> template<>

View File

@ -8,15 +8,6 @@
#include "primitive_inst.h" #include "primitive_inst.h"
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<extract_image_patches> : public typed_program_node_base<extract_image_patches> {
using parent = typed_program_node_base<extract_image_patches>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using extract_image_patches_node = typed_program_node<extract_image_patches>; using extract_image_patches_node = typed_program_node<extract_image_patches>;

View File

@ -10,18 +10,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<eye> : public typed_program_node_base<eye> {
using parent = typed_program_node_base<eye>;
public:
using parent::parent;
program_node& input(std::size_t index = 0) const {
return get_dependency(index);
}
};
using eye_node = typed_program_node<eye>; using eye_node = typed_program_node<eye>;
template <> template <>

View File

@ -8,15 +8,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<gather_nd> : public typed_program_node_base<gather_nd> {
using parent = typed_program_node_base<gather_nd>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using gather_nd_node = typed_program_node<gather_nd>; using gather_nd_node = typed_program_node<gather_nd>;

View File

@ -10,16 +10,6 @@
#include <memory> #include <memory>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<gather_tree> : typed_program_node_base<gather_tree> {
private:
using parent = typed_program_node_base<gather_tree>;
public:
using parent::parent;
typed_program_node(const std::shared_ptr<gather_tree> prim, program& prog) : parent(prim, prog) {
}
program_node& input() const { return get_dependency(0); }
};
using gather_tree_node = typed_program_node<gather_tree>; using gather_tree_node = typed_program_node<gather_tree>;

View File

@ -11,16 +11,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<grn> : public typed_program_node_base<grn> {
using parent = typed_program_node_base<grn>;
public:
using parent::parent;
program_node& input() const { return get_dependency(0); }
};
using grn_node = typed_program_node<grn>; using grn_node = typed_program_node<grn>;
template <> template <>

View File

@ -10,15 +10,6 @@
namespace cldnn { namespace cldnn {
template<>
struct typed_program_node<random_uniform> : public typed_program_node_base<random_uniform> {
using parent = typed_program_node_base<random_uniform>;
public:
using parent::parent;
const program_node &input(std::size_t index = 0) const { return get_dependency(index); }
};
using random_uniform_node = typed_program_node<random_uniform>; using random_uniform_node = typed_program_node<random_uniform>;
template<> template<>

View File

@ -11,15 +11,6 @@
namespace cldnn { namespace cldnn {
template<>
struct typed_program_node<read_value> : public typed_program_node_base<read_value> {
using parent = typed_program_node_base<read_value>;
public:
using parent::parent;
const program_node& input(std::size_t index = 0) const { return get_dependency(index); }
};
using read_value_node = typed_program_node<read_value>; using read_value_node = typed_program_node<read_value>;
template<> template<>

View File

@ -10,15 +10,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<reduce> : public typed_program_node_base<reduce> {
using parent = typed_program_node_base<reduce>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using reduce_node = typed_program_node<reduce>; using reduce_node = typed_program_node<reduce>;

View File

@ -10,17 +10,6 @@
#include "primitive_inst.h" #include "primitive_inst.h"
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<reverse> : public typed_program_node_base<reverse> {
using parent = typed_program_node_base<reverse>;
public:
using parent::parent;
program_node& input(size_t index = 0) const {
return get_dependency(index);
}
};
using reverse_node = typed_program_node<reverse>; using reverse_node = typed_program_node<reverse>;

View File

@ -10,15 +10,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<reverse_sequence> : public typed_program_node_base<reverse_sequence> {
using parent = typed_program_node_base<reverse_sequence>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using reverse_sequence_node = typed_program_node<reverse_sequence>; using reverse_sequence_node = typed_program_node<reverse_sequence>;

View File

@ -9,16 +9,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<roi_align> : public typed_program_node_base<roi_align> {
using parent = typed_program_node_base<roi_align>;
public:
using parent::parent;
program_node& input(std::size_t index = 0) const { return get_dependency(index); }
};
using roi_align_node = typed_program_node<roi_align>; using roi_align_node = typed_program_node<roi_align>;
template <> template <>

View File

@ -8,16 +8,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<roll> : typed_program_node_base<roll> {
using parent = typed_program_node_base<roll>;
using parent::parent;
program_node& input() const {
return get_dependency(0);
}
};
using roll_node = typed_program_node<roll>; using roll_node = typed_program_node<roll>;
template <> template <>

View File

@ -9,15 +9,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<scatter_elements_update> : public typed_program_node_base<scatter_elements_update> {
using parent = typed_program_node_base<scatter_elements_update>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using scatter_elements_update_node = typed_program_node<scatter_elements_update>; using scatter_elements_update_node = typed_program_node<scatter_elements_update>;

View File

@ -9,15 +9,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<scatter_nd_update> : public typed_program_node_base<scatter_nd_update> {
using parent = typed_program_node_base<scatter_nd_update>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using scatter_nd_update_node = typed_program_node<scatter_nd_update>; using scatter_nd_update_node = typed_program_node<scatter_nd_update>;

View File

@ -10,15 +10,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<scatter_update> : public typed_program_node_base<scatter_update> {
using parent = typed_program_node_base<scatter_update>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using scatter_update_node = typed_program_node<scatter_update>; using scatter_update_node = typed_program_node<scatter_update>;

View File

@ -10,15 +10,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<shuffle_channels> : public typed_program_node_base<shuffle_channels> {
using parent = typed_program_node_base<shuffle_channels>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using shuffle_channels_node = typed_program_node<shuffle_channels>; using shuffle_channels_node = typed_program_node<shuffle_channels>;

View File

@ -9,16 +9,6 @@
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<slice> : public typed_program_node_base<slice> {
using parent = typed_program_node_base<slice>;
public:
using parent::parent;
program_node& input(std::size_t index = 0) const { return get_dependency(index); }
};
using slice_node = typed_program_node<slice>; using slice_node = typed_program_node<slice>;
template <> template <>

View File

@ -11,15 +11,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<space_to_batch> : public typed_program_node_base<space_to_batch> {
using parent = typed_program_node_base<space_to_batch>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using space_to_batch_node = typed_program_node<space_to_batch>; using space_to_batch_node = typed_program_node<space_to_batch>;

View File

@ -11,15 +11,6 @@
#include <string> #include <string>
namespace cldnn { namespace cldnn {
template <>
struct typed_program_node<space_to_depth> : public typed_program_node_base<space_to_depth> {
using parent = typed_program_node_base<space_to_depth>;
public:
using parent::parent;
program_node& input(size_t index = 0) const { return get_dependency(index); }
};
using space_to_depth_node = typed_program_node<space_to_depth>; using space_to_depth_node = typed_program_node<space_to_depth>;

View File

@ -12,16 +12,6 @@
namespace cldnn { namespace cldnn {
template <>
class typed_program_node<split> : public typed_program_node_base<split> {
using parent = typed_program_node_base<split>;
public:
using parent::parent;
program_node& input() const { return get_dependency(0); }
};
using split_node = typed_program_node<split>; using split_node = typed_program_node<split>;
template <> template <>