Skip to content

Commit

Permalink
[tf-frontend] print error message for TF_LoadLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
heromapwrd committed Jul 10, 2024
1 parent 9b989ae commit fb8f510
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontends/tf-frontend/tools/tf_frontend_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ int main(int argc, char **argv) {
TF_Status *status_load = TF_NewStatus();
TF_Library *lib_handle = TF_LoadLibrary(path.c_str(), status_load);
if (!lib_handle) {
const char *msg = TF_Message(status_load);
if (nullptr != msg)
llvm::errs() << msg << "\n";
llvm::errs() << "Load external library failed, path is: " << path << "\n";
return 1;
}
Expand Down

0 comments on commit fb8f510

Please sign in to comment.