Skip to content

Commit

Permalink
TransformationContext is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
v-Golubev committed Jan 17, 2025
1 parent 7d88209 commit ebb2b13
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <vector>

#include "openvino/pass/matcher_pass.hpp"
#include "transformation_context.hpp"
#include "quantization_details.hpp"
#include "low_precision/common/ie_lpt_exception.hpp"
#include "common/fake_quantize_dequantization.hpp"
Expand Down Expand Up @@ -346,7 +345,6 @@ class LP_TRANSFORMATIONS_API LayerTransformation : public ov::pass::MatcherPass
bool scalingMode;

static constexpr char originalLayerPostfix[] = "_original";
TransformationContext* context;

protected:
std::shared_ptr<ov::Node> moveDequantizationAfter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "rt_info/precisions_attribute.hpp"
#include "rt_info/quantization_granularity_attribute.hpp"
#include "rt_info/intervals_alignment_attribute.hpp"
#include "transformation_context.hpp"
#include "quantization_details.hpp"
#include "transformations/utils/utils.hpp"
#include "common/fake_quantize_dequantization.hpp"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once

#include <memory>
#include "transformation_context.hpp"
#include "layer_transformation.hpp"
#include "openvino/opsets/opset1.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,7 @@ LayerTransformation::LayerTransformation(const Params& params) :
deqPrecision(params.deqPrecision),
defaultPrecisions(params.defaultPrecisions),
reshapeIgnorePerTensorQuantizationCheck(params.reshapeIgnorePerTensorQuantizationCheck),
scalingMode(params.scalingMode),
context(nullptr) {}

void LayerTransformation::setUpdatePrecisions(const bool updatePrecisions) {
this->updatePrecisions = updatePrecisions;
}

void LayerTransformation::setDefaultPrecisions(const std::vector<ov::element::Type>& defaultPrecisions) {
this->defaultPrecisions = defaultPrecisions;
}
scalingMode(params.scalingMode) {}

bool LayerTransformation::canBeTransformed(const std::shared_ptr<Node>& layer) const {
if (!isQuantized(layer, defaultPrecisions)) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "low_precision/rt_info/intervals_alignment_attribute.hpp"
#include "low_precision/rt_info/precisions_attribute.hpp"
#include "low_precision/layer_transformation.hpp"
#include "low_precision/transformation_context.hpp"
#include "low_precision/network_helper.hpp"
#include "ov_lpt_models/common/dequantization_operations.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "low_precision/markup_bias.hpp"
#include "low_precision/markup_can_be_quantized.hpp"
#include "low_precision/markup_quantization_granularity.hpp"
#include "low_precision/transformation_context.hpp"

// cleanup transformations
#include "low_precision/convert.hpp"
Expand Down

0 comments on commit ebb2b13

Please sign in to comment.