Publishing 2019 R3 content
[platform/upstream/dldt.git] / inference-engine / src / vpu / graph_transformer / src / passes / initial_check.cpp
1 // Copyright (C) 2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3
4 #include <vpu/pass_manager.hpp>
5
6 #include <memory>
7
8 namespace vpu {
9 namespace {
10
11 class PassImpl final : public Pass {
12 public:
13     void run(const Model::Ptr& model) override {
14         VPU_PROFILE(initialCheck);
15
16         for (const auto& stage : model->getStages()) {
17             stage->initialCheck();
18         }
19     }
20 };
21
22 }  // namespace
23
24 Pass::Ptr PassManager::initialCheck() {
25     return std::make_shared<PassImpl>();
26 }
27
28 }  // namespace vpu