Skip to content

Commit

Permalink
test fix: interval changes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Mar 22, 2023
1 parent 5ee47bc commit 682db9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
{
ngraph::element::f32,
{ 256ul, {}, { -12.8f }, { 12.7f }, { -12.8f }, { 12.7f }, ngraph::element::f32 },
{ 256ul, {}, { -12.8f }, { 12.7f }, { -12.8f }, { 12.7f }, ngraph::element::f32 }
{ 256ul, {}, { -12.8f * 2.f }, { 12.7f * 2.f }, { -12.8f * 2.f }, { 12.7f * 2.f }, ngraph::element::f32 },
{ 256ul, {}, { -12.8f * 2.f }, { 12.7f * 2.f }, { -12.8f * 2.f }, { 12.7f * 2.f }, ngraph::element::f32 }
},
{
{ "fakeQuantize1", "fakeQuantize2" }, // not fused
Expand All @@ -48,7 +48,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
{
ngraph::element::f32,
{ 256ul, {}, { 0.f }, { 25.5f }, { 0.f }, { 25.5f }, ngraph::element::f32 },
{ 256ul, {}, { 0.f }, { 25.5f / 2.f }, { 0.f }, { 25.5f / 2.f }, ngraph::element::f32 }
{ 256ul, {}, { 0.f }, { 25.5f / 1.1f }, { 0.f }, { 25.5f / 1.1f }, ngraph::element::f32 }
},
{
{ "fakeQuantize1", "fakeQuantize2" }, // not fused
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class FuseFakeQuantizeTransformation
public:
static std::string getTestCaseName(const testing::TestParamInfo<FuseFakeQuantizeTransformationParams>& obj);

virtual InferenceEngine::Blob::Ptr GenerateInput(const InferenceEngine::InputInfo& inputInfo) const;

protected:
void SetUp() override;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ std::string FuseFakeQuantizeTransformation::getTestCaseName(const testing::TestP
return result.str();
}

InferenceEngine::Blob::Ptr FuseFakeQuantizeTransformation::GenerateInput(const InferenceEngine::InputInfo& info) const {
return FuncTestUtils::createAndFillBlob(info.getTensorDesc(), 20, 0, 1, 1);
}

void FuseFakeQuantizeTransformation::SetUp() {
FuseFakeQuantizeTransformationTestValues testValues;
std::tie(targetDevice, testValues) = this->GetParam();
Expand Down

0 comments on commit 682db9d

Please sign in to comment.