Removed API GgmlOvDecoder::get_input_names()
This commit is contained in:
parent
197ed992c0
commit
95c3071906
|
|
@ -147,7 +147,6 @@ void GgmlOvDecoder::set_input_output(ggml_tensor * node, bool naive) {
|
|||
continue;
|
||||
}
|
||||
std::string src_name = std::string(src->name);
|
||||
m_input_names.push_back(src_name);
|
||||
m_inputs[src_name] = src;
|
||||
current_node_info.node_inputs[src_name] = src;
|
||||
current_node_info.node_inputs_names.push_back(src_name);
|
||||
|
|
@ -757,17 +756,13 @@ ov::element::Type GgmlOvDecoder::get_input_type(const std::string & name) const
|
|||
}
|
||||
|
||||
size_t GgmlOvDecoder::get_input_size() const {
|
||||
return m_input_names.size();
|
||||
return m_model_inputs.size();
|
||||
}
|
||||
|
||||
size_t GgmlOvDecoder::get_input_size(int node_idx) const {
|
||||
return m_node_info_list[node_idx].node_inputs_names.size();
|
||||
}
|
||||
|
||||
std::vector<std::string> GgmlOvDecoder::get_input_names() const {
|
||||
return m_input_names;
|
||||
}
|
||||
|
||||
std::vector<std::string> GgmlOvDecoder::get_input_names(int node_idx) const {
|
||||
return m_node_info_list[node_idx].node_inputs_names;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,8 +101,6 @@ public:
|
|||
GGML_UNUSED(producer_output_port_index);
|
||||
}
|
||||
|
||||
virtual std::vector<std::string> get_input_names() const override;
|
||||
|
||||
virtual std::vector<std::string> get_input_names(int node_idx) const override;
|
||||
|
||||
virtual ov::PartialShape get_output_shape(int node_idx) const override;
|
||||
|
|
@ -229,7 +227,6 @@ private:
|
|||
ggml_cgraph * m_cgraph = nullptr;
|
||||
std::vector<ggml_tensor *> m_nodes;
|
||||
std::map<std::string, ggml_tensor *> m_inputs;
|
||||
std::vector<std::string> m_input_names;
|
||||
|
||||
std::map<std::string, std::shared_ptr<ov::Node>> m_model_inputs;
|
||||
std::map<std::string, std::shared_ptr<ov::Node>> m_model_extra_inputs;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ public:
|
|||
std::string& producer_output_port_name,
|
||||
size_t& producer_output_port_index) const = 0;
|
||||
|
||||
virtual std::vector<std::string> get_input_names() const = 0;
|
||||
|
||||
virtual std::vector<std::string> get_input_names(int node_idx) const = 0;
|
||||
|
||||
virtual PartialShape get_output_shape(int node_idx) const = 0;
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ public:
|
|||
return m_decoder->get_input_type(m_input_names[index]);
|
||||
}
|
||||
|
||||
PartialShape get_input_shape(size_t index) const {
|
||||
return m_decoder->get_input_shape(m_node_idx, m_input_names[index]);
|
||||
PartialShape get_input_shape(size_t input_index) const {
|
||||
return m_decoder->get_input_shape(m_node_idx, m_input_names[input_index]);
|
||||
}
|
||||
|
||||
std::vector<size_t> get_input_stride(size_t index) const {
|
||||
|
|
|
|||
Loading…
Reference in New Issue