Skip to content

Commit

Permalink
feat: error message display when error happens when running the graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
MRKonrad committed Apr 18, 2019
1 parent 3d9c087 commit 74158ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oxtfUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ int sessionRun(TF_Tensor* input_tensor, TF_Tensor*& output_tensor, std::string g
);

if (TF_GetCode(status) != TF_OK) {
std::cout << "Error " << TF_GetCode(status) << " running session";
std::cout << "Error running session: TF_Code: " << TF_GetCode(status)
<< " message: " << TF_Message(status) << std::endl;
TF_DeleteStatus(status);
return 5;
}
Expand Down

0 comments on commit 74158ae

Please sign in to comment.