Use absolute path in some cpuFuncTests (#12808)
This commit is contained in:
parent
47068735a4
commit
c5588f6f46
@ -147,7 +147,8 @@ static void infer_model(InferenceEngine::Core& ie, InferenceEngine::CNNNetwork&
|
||||
}
|
||||
|
||||
static std::string model_full_path(const char* path) {
|
||||
return FileUtils::makePath<char>(TEST_MODELS, path);
|
||||
return FileUtils::makePath<char>(
|
||||
FileUtils::makePath<char>(CommonTestUtils::getExecutableDirectory(), TEST_MODELS), path);
|
||||
}
|
||||
|
||||
TEST(Extension, XmlModelWithCustomAbs) {
|
||||
|
@ -3,6 +3,7 @@
|
||||
//
|
||||
|
||||
#include <file_utils.h>
|
||||
#include "common_test_utils/file_utils.hpp"
|
||||
#include "onnx/quantized_models_tests.hpp"
|
||||
|
||||
namespace ONNXTestsDefinitions {
|
||||
@ -19,7 +20,8 @@ void QuantizedModelsTests::SetUp() {
|
||||
}
|
||||
|
||||
static std::string getModelFullPath(const char* path) {
|
||||
return FileUtils::makePath<char>(TEST_MODELS, path);
|
||||
return FileUtils::makePath<char>(
|
||||
FileUtils::makePath<char>(CommonTestUtils::getExecutableDirectory(), TEST_MODELS), path);
|
||||
}
|
||||
|
||||
void QuantizedModelsTests::runModel(const char* model, const LayerInputTypes& expected_layer_input_types, float thr) {
|
||||
|
Loading…
Reference in New Issue
Block a user