From ee284cba713efaad3c958d15ed8e6a16ef4919c3 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 12 Jun 2024 19:08:22 +0000 Subject: [PATCH] update --- orttraining/orttraining/training_api/module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orttraining/orttraining/training_api/module.cc b/orttraining/orttraining/training_api/module.cc index 347673628e106..dc724fbae48eb 100644 --- a/orttraining/orttraining/training_api/module.cc +++ b/orttraining/orttraining/training_api/module.cc @@ -685,7 +685,7 @@ Status Module::ExportModelForInferencing(const std::string& inference_model_path ORT_THROW_IF_ERROR( Model::SaveWithExternalInitializers(*inference_model, inference_model_pathstring, external_data_name, 64)); } else { - ORT_THROW_IF_ERROR(Model::Save(*inference_model, inference_model_path)); + ORT_THROW_IF_ERROR(Model::Save(*inference_model, ToPathString(inference_model_path))); } // Save the model at the desired location. return Status::OK();