forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LPT] Refactoring: PoC (openvinotoolkit#5226)
* LPT fix for Windows * LPT fix for Windows * Remove inference_engine_transformations_EXPORTS * [nGraph] Register new node in GraphRewrite * [LPT] nGraph alignment * [LPT] nGraph alignment: tests Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
- Loading branch information
Showing
393 changed files
with
9,559 additions
and
5,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
.../src/low_precision_transformations/include/low_precision/align_quantization_intervals.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
#include <ngraph/pass/pass.hpp> | ||
#include "low_precision/lpt_visibility.hpp" | ||
|
||
namespace ngraph { | ||
namespace pass { | ||
namespace low_precision { | ||
|
||
class LP_TRANSFORMATIONS_API AlignQuantizationIntervals; | ||
|
||
} // namespace low_precision | ||
} // namespace pass | ||
} // namespace ngraph | ||
|
||
class ngraph::pass::low_precision::AlignQuantizationIntervals : public ngraph::pass::FunctionPass { | ||
public: | ||
NGRAPH_RTTI_DECLARATION; | ||
bool run_on_function(std::shared_ptr<ngraph::Function> f) override; | ||
}; |
26 changes: 26 additions & 0 deletions
26
...src/low_precision_transformations/include/low_precision/align_quantization_parameters.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include <ngraph/pass/pass.hpp> | ||
#include "low_precision/lpt_visibility.hpp" | ||
|
||
namespace ngraph { | ||
namespace pass { | ||
namespace low_precision { | ||
|
||
class LP_TRANSFORMATIONS_API AlignQuantizationParameters; | ||
|
||
} // namespace low_precision | ||
} // namespace pass | ||
} // namespace ngraph | ||
|
||
class ngraph::pass::low_precision::AlignQuantizationParameters : public ngraph::pass::FunctionPass { | ||
public: | ||
NGRAPH_RTTI_DECLARATION; | ||
bool run_on_function(std::shared_ptr<ngraph::Function> f) override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ence-engine/src/low_precision_transformations/include/low_precision/base_matcher_pass.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
#include <ngraph/node.hpp> | ||
#include <ngraph/pass/graph_rewrite.hpp> | ||
#include "rt_info/attribute_parameters.hpp" | ||
|
||
namespace ngraph { | ||
namespace pass { | ||
namespace low_precision { | ||
|
||
class LP_TRANSFORMATIONS_API BaseMatcherPass; | ||
|
||
} // namespace low_precision | ||
} // namespace pass | ||
} // namespace ngraph | ||
|
||
class LP_TRANSFORMATIONS_API ngraph::pass::low_precision::BaseMatcherPass : public ngraph::pass::MatcherPass { | ||
public: | ||
BaseMatcherPass(const AttributeParameters& params = AttributeParameters()); | ||
AttributeParameters params; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.