Skip to content

Commit

Permalink
Fix test path to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Sep 28, 2024
1 parent e122456 commit d6e71b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/test/shared_lib/test_inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4448,7 +4448,8 @@ static void TestRunWithLoraAdapter(const Ort::LoraAdapter& adapter) {

static Ort::LoraAdapter CreateAdapterFromFile() {
constexpr const ORTCHAR_T* adapter_path = TSTR("testdata/lora/two_params_lora_model.onnx_adapter");
return Ort::LoraAdapter::CreateLoraAdapter(adapter_path, nullptr);
const auto adapter_abs_path = std::filesystem::absolute(adapter_path);
return Ort::LoraAdapter::CreateLoraAdapter(adapter_abs_path, nullptr);
}

static Ort::LoraAdapter CreateAdapterFromArray() {
Expand Down

0 comments on commit d6e71b6

Please sign in to comment.