[IE][VPU][GT]: Use topological order in shape allocation (#1281)
authorAndrew Bakalin <andrew.bakalin@intel.com>
Fri, 17 Jul 2020 08:47:37 +0000 (11:47 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 08:47:37 +0000 (11:47 +0300)
commit5cda3938d8463447fcce441f0b09fe193e9292cc
treea1385eee4310c08b0d900310fcf2f8050e731cfb
parentee3fafcedaa738643a5285eeca47bec534489bb9
[IE][VPU][GT]: Use topological order in shape allocation (#1281)

* Some pass creates datas duplicate with a different order from time to time (because of unordered_set usage). It leads to a different order in model->datas() list and affects the shape allocation process which relies on this order.
* Make shape allocation be relied on topological order of datas which is stable and doesn't depend on order datas creation during different passes.
inference-engine/src/vpu/graph_transformer/include/vpu/middleend/allocator/allocator.hpp
inference-engine/src/vpu/graph_transformer/include/vpu/model/data.hpp
inference-engine/src/vpu/graph_transformer/src/middleend/allocator/allocator.cpp
inference-engine/src/vpu/graph_transformer/src/middleend/passes/allocate_resources.cpp
inference-engine/src/vpu/graph_transformer/src/model/data.cpp