mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
[VITISAI] remove unused code (#17066)
### Description <!-- Describe your changes. --> remove unused code ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> remove unused code
This commit is contained in:
parent
dbbfc249f7
commit
249c2221b6
1 changed files with 0 additions and 17 deletions
|
|
@ -9,21 +9,6 @@
|
|||
|
||||
namespace vaip {
|
||||
using namespace ::onnxruntime;
|
||||
std::vector<const Node*> node_arg_names_to_nodes(const GraphViewer& graph,
|
||||
const std::vector<std::string>& node_arg_names) {
|
||||
auto ret = std::vector<const Node*>();
|
||||
ret.reserve(node_arg_names.size());
|
||||
for (auto& onnx_node_arg_name : node_arg_names) {
|
||||
auto deq = graph.GetProducerNode(onnx_node_arg_name);
|
||||
vai_assert(deq != nullptr, std::string("cannot find producer. onnx_node_arg_name=" + onnx_node_arg_name));
|
||||
// to support multiple output, some nodes mighe already be inserted.
|
||||
auto found = std::find(ret.begin(), ret.end(), deq) != ret.end();
|
||||
if (!found) {
|
||||
ret.push_back(deq);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static std::vector<NodeIndex> node_names_to_nodes(const GraphViewer& graph,
|
||||
const std::vector<std::string>& node_names) {
|
||||
|
|
@ -40,8 +25,6 @@ static std::vector<NodeIndex> node_names_to_nodes(const GraphViewer& graph,
|
|||
|
||||
std::unique_ptr<ComputeCapability> XirSubgraphToComputeCapability1(const onnxruntime::GraphViewer& graph, vaip_core::ExecutionProvider* ep, size_t index) {
|
||||
auto meta_def = std::make_unique<IndexedSubGraph::MetaDef>();
|
||||
auto input_nodes = node_arg_names_to_nodes(graph, *ep->get_meta_def_inputs());
|
||||
auto output_nodes = node_arg_names_to_nodes(graph, *ep->get_meta_def_outputs());
|
||||
meta_def->constant_initializers = *ep->get_meta_def_constant_initializer();
|
||||
meta_def->inputs = *ep->get_meta_def_inputs();
|
||||
meta_def->outputs = *ep->get_meta_def_outputs();
|
||||
|
|
|
|||
Loading…
Reference in a new issue