Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dequantize (Sub, Mul) to FakeQuantize #4189

Merged
merged 4 commits into from
Feb 10, 2021

Conversation

jane-intel
Copy link
Contributor

@jane-intel jane-intel commented Feb 4, 2021

Ticket: 48257
validation: developer-services/job/accuracy/1129/

@jane-intel jane-intel added the bug Something isn't working label Feb 10, 2021
@jane-intel jane-intel added this to the 2021.3 milestone Feb 10, 2021
@jane-intel jane-intel marked this pull request as ready for review February 10, 2021 08:30
@jane-intel jane-intel requested review from a team February 10, 2021 08:30
@jane-intel jane-intel requested review from a team as code owners February 10, 2021 08:30
@novakale novakale self-requested a review February 10, 2021 14:06
@jane-intel jane-intel merged commit a313c0c into openvinotoolkit:master Feb 10, 2021
};

auto m = std::make_shared<ngraph::pattern::Matcher>(mul, "WeightsDequantizeToFakeQuantize");
register_matcher(m, callback);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add some tests.


const auto *data = weights_node->get_data_ptr<int8_t>();
const int8_t weights_minimum = *std::min_element(data, data + shape_size(weights_node->get_shape()));
int64_t levels = (weights_minimum == static_cast<int8_t>(-128)) ? 256 : 255;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jane-intel, is it confirmed that we have to do this thing?

@jane-intel jane-intel deleted the dequantize_to_fq branch May 26, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants