From 8593e24a4fc2d9c8c81a71777e0c0dae7543b6dc Mon Sep 17 00:00:00 2001 From: ryan jiang Date: Mon, 11 Feb 2019 13:03:59 -0500 Subject: [PATCH] added python version, bazel version, and tf installed info to env_capture_script --- tools/tf_env_collect.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/tf_env_collect.sh b/tools/tf_env_collect.sh index a1c9c88c58c..ce8d87e5208 100755 --- a/tools/tf_env_collect.sh +++ b/tools/tf_env_collect.sh @@ -111,6 +111,21 @@ DEBUG_LD=libs ${python_bin_path} -c "import tensorflow" 2>>${OUTPUT_FILE} > /tm find /usr/local -type f -name 'libcudart*' 2>/dev/null | grep cuda | grep -v "\\.cache" >> ${OUTPUT_FILE} find /usr/local -type f -name 'libudnn*' 2>/dev/null | grep cuda | grep -v "\\.cache" >> ${OUTPUT_FILE} +{ + echo + echo '== tensorflow installed from info ==================' + pip show tensorflow + + echo + echo '== python version ==============================================' + echo '(major, minor, micro, releaselevel, serial)' + python -c 'import sys; print(sys.version_info[:])' + + echo + echo '== bazel version ===============================================' + bazel version +} >> ${OUTPUT_FILE} + # Remove any words with google. mv $OUTPUT_FILE old-$OUTPUT_FILE grep -v -i google old-${OUTPUT_FILE} > $OUTPUT_FILE