Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,17 @@ class ScaleFactorPerLayer<InferenceEngine::CNNLayer *> {

if (cnnLayer->type == "Const") {
auto blob = cnnLayer->blobs["custom"];
if (blob->getTensorDesc().getPrecision() == InferenceEngine::Precision::FP16) {
auto blob_precision = blob->getTensorDesc().getPrecision();

if (blob_precision != InferenceEngine::Precision::FP32 && blob_precision != InferenceEngine::Precision::FP16) {
quant->_dst_quant.scale = 1.0f;
return true;
}

if (blob_precision == InferenceEngine::Precision::FP16) {
blob = make_fp32_blob(blob);
}

auto max_val = std::numeric_limits<float>::min();
auto min_val = std::numeric_limits<float>::max();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const std::vector<std::map<std::string, std::string>> configs = {
}
};

INSTANTIATE_TEST_CASE_P(ConcatQuantization, ConcatQuantization,
INSTANTIATE_TEST_CASE_P(smoke_ConcatQuantization, ConcatQuantization,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

smoke prefix is using as pre-commit gtest filter in old functional tests in CI and will be reused in the future for new functional tests (it is not enabled yet because running of func tests is very fast). I suppose, we shoul not remove smoke_

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@iefode i dint get - we should remove it or not? I though we need to add this to enable tests in precomit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@iefode, please clarify, what should we do for a test to be enabled in precommit? Or do you mean this test should have been running already in precommit?

::testing::Combine(
::testing::ValuesIn(netPrecisions),
::testing::Values(CommonTestUtils::DEVICE_GNA),
Expand Down