Skip to content

Commit

Permalink
Fix arm tests (bf16) (openvinotoolkit#13149)
Browse files Browse the repository at this point in the history
Fix arm tests bf16
  • Loading branch information
allnes authored Sep 21, 2022
1 parent 4564c92 commit ce9751a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ void SubgraphBaseTest::compile_model() {
}

// Within the test scope we don't need any implicit bf16 optimisations, so let's run the network as is.
if (targetDevice == CommonTestUtils::DEVICE_CPU && !configuration.count(InferenceEngine::PluginConfigParams::KEY_ENFORCE_BF16)) {
configuration.insert({InferenceEngine::PluginConfigParams::KEY_ENFORCE_BF16, InferenceEngine::PluginConfigParams::NO});
}
#if !(defined(__arm__) || defined(_M_ARM) || defined(__aarch64__) || defined(_M_ARM64))
if (targetDevice == CommonTestUtils::DEVICE_CPU && !configuration.count(InferenceEngine::PluginConfigParams::KEY_ENFORCE_BF16)) {
configuration.insert({InferenceEngine::PluginConfigParams::KEY_ENFORCE_BF16, InferenceEngine::PluginConfigParams::NO});
}
#endif

compiledModel = core->compile_model(function, targetDevice, configuration);
}
Expand Down

0 comments on commit ce9751a

Please sign in to comment.