-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
throw a message if tf runtime is incompatible (#797)
* throw a message if tf runtime is incompatible fix #557 and #796. * still raise if tf version is correct * detect TF_CXX11_ABI_FLAG * format codes * fix lint * move messages into the function * fix lint * fix lints
- Loading branch information
Showing
4 changed files
with
98 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
#include "tensorflow/core/public/version.h" | ||
|
||
int main(int argc, char * argv[]) | ||
{ | ||
// See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/public/version.h | ||
// TF_VERSION_STRING has been avaiable since TensorFlow v0.6 | ||
std::cout << TF_VERSION_STRING; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters