Update unsupported ORT format version error message to link to doc on rel-1.13.0 branch. (#13187)

This commit is contained in:
Edward Chen 2022-09-30 17:13:52 -07:00 committed by GitHub
parent 054464dce2
commit a86b8329d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1037,10 +1037,9 @@ Status InferenceSession::LoadOrtModelWithLoader(std::function<Status()> load_ort
// Note about the ORT format version 5 breaking change.
// TODO This change was introduced in 1.13. Remove this note a few releases later, e.g., 1.15.
// TODO(edgchen1) update link to point to 1.13 release branch
constexpr auto* kOrtFormatVersion5BreakingChangeNote =
"This build doesn't support ORT format models older than version 5. "
"See: https://github.com/microsoft/onnxruntime/blob/main/docs/ORT_Format_Update_in_1.13.md";
"See: https://github.com/microsoft/onnxruntime/blob/rel-1.13.0/docs/ORT_Format_Update_in_1.13.md";
ORT_RETURN_IF_NOT(IsOrtModelVersionSupported(fbs_ort_model_version->string_view()),
"The ORT format model version [", fbs_ort_model_version->string_view(),