program_node refactoring (#13576)
This commit is contained in:
parent
ca31a4f1c7
commit
d31c9b0b3a
@ -23,15 +23,6 @@ private:
|
||||
|
||||
} // 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>;
|
||||
|
||||
template<>
|
||||
|
@ -11,15 +11,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -10,15 +10,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -11,16 +11,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -10,15 +10,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -9,13 +9,6 @@
|
||||
#include "primitive_inst.h"
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,15 +10,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template<>
|
||||
|
@ -8,15 +8,6 @@
|
||||
#include "primitive_inst.h"
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,18 +10,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -8,15 +8,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,16 +10,6 @@
|
||||
#include <memory>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -11,16 +11,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -10,15 +10,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template<>
|
||||
|
@ -11,15 +11,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template<>
|
||||
|
@ -10,15 +10,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,17 +10,6 @@
|
||||
#include "primitive_inst.h"
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,15 +10,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -9,16 +9,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -8,16 +8,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -9,15 +9,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -9,15 +9,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,15 +10,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -10,15 +10,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -9,16 +9,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
@ -11,15 +11,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -11,15 +11,6 @@
|
||||
#include <string>
|
||||
|
||||
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>;
|
||||
|
||||
|
@ -12,16 +12,6 @@
|
||||
|
||||
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>;
|
||||
|
||||
template <>
|
||||
|
Loading…
Reference in New Issue
Block a user