File tree 2 files changed +13
-1
lines changed 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
cd $( dirname $( readlink -f " $0 " ) )
14
14
15
- tensorflow_version=1.1.0
15
+ tensorflow_version=1.2.1
16
16
17
17
valgrind_log=valgrind.log
18
18
truncate --size=0 " $valgrind_log "
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ # Make sure the Tensorflow version in the -sys build script matches the one in
6
+ # the run-valgrind script.
7
+ version_build_script=` grep " const VERSION" tensorflow-sys/build.rs | sed ' s|.*"\([0-9\.]*\)";|\1|g' `
8
+ version_run_valgrind=` grep " tensorflow_version=" run-valgrind | sed " s|.*=\(.*\)|\1|g" `
9
+ if [[ " ${version_build_script} " != " ${version_run_valgrind} " ]]; then
10
+ echo " ERROR: Tensorflow version specified in build script does not match the one in the"
11
+ echo " valgrind run script."
12
+ echo " tensorflow-sys/build.rs: ${version_build_script} "
13
+ echo " run-valgrind: ${version_run_valgrind} "
14
+ exit 1
15
+ fi
16
+
5
17
cargo test -vv -j 2 --features tensorflow_unstable
6
18
cargo run --example regression
7
19
cargo run --features tensorflow_unstable --example expressions
You can’t perform that action at this time.
0 commit comments