From f3c89936e97c99dead1ca3310246691c1b221adf Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 26 Jun 2017 12:54:12 -0700 Subject: Merge changes from github. END_PUBLIC Note: this CL will break builds. cl/159887762 to follow to fix all the breakages. --- Commit 2336cdf7f authored by Maxwell Paul Brickner Committed by gunan: Updated link to use HTTPS (#10998) Howdy! I just updated a link to use https instead of http. Thanks! --- Commit ad0892df1 authored by Luke Iwanski Committed by Luke Iwanski: [OpenCL] Fixes run_metadata_test for SYCL This test is designed to test CUDA specific behavior --- Commit 6b37a0725 authored by Todd Wang Committed by GitHub: Update comments --- Commit 1699d904a authored by John Lawson Committed by Luke Iwanski: [OpenCL] Fixes CUDA specific test run on SYCL (#56) The testBadParentValuesOnGPU should only be run on CUDA devices, as the test checks for particular CUDA behaviour. We don't actually provide a SYCL kernel for GatherTree and so it's not a problem that the tests don't target SYCL. --- Commit 3c1946230 authored by myPrecious Committed by Shanqing Cai: Java API to get the size of specified input list of operations. (#10865) * Java API to get the size of specified input list of operations * remove unnecessary explain to avoid bring a new term to users. --- Commit e911c7480 authored by Luke Iwanski Committed by Luke Iwanski: [OpenCL] REGISTER -> REGISTER6 --- Commit fbf6c4cec authored by superryanguo Committed by superryanguo: Simplify the Quickstart section with the weblink is better --- Commit 72e2918cc authored by Taehoon Lee Committed by Taehoon Lee: Fix typos --- Commit 90c4406b7 authored by Rishabh Patel Committed by GitHub: Correct the learning rate as per the code snippet --- Commit 03da61134 authored by Todd Wang Committed by GitHub: Update ir_array.cc --- Commit 2df6cd3ac authored by Todd Wang Committed by GitHub: Another try --- Commit af0cbace1 authored by Luke Iwanski Committed by Benoit Steiner: [OpenCL] Transpose to go through Eigen (#10321) --- Commit fc7361081 authored by Luke Iwanski Committed by Benoit Steiner: [OpenCL] Registers RGBToHSV and HSVToRGB (#91) (#10848) * [OpenCL] Added RGBToHSV and HSVToRGB * Aligning '\' --- Commit 832894ef8 authored by Luke Iwanski Committed by Benoit Steiner: [OpenCL] Registers AdjustContrastv2 (#10949) * [OpenCL] Registers AdjustContrastv2 (#93) * [OpenCL] Extended adjust_contrast_op_benchmark_test for OpenCL (#96) * [OpenCL] Extended adjust_contrast_op_benchmark_test for OpenCL * simplified to #ifndef * Changed to "#if GOOGLE_CUDA" * Update adjust_contrast_op_benchmark_test.cc * Added comments --- Commit cb4c2f8d1 authored by Yifei Feng Committed by Yifei Feng: Make TransferBufferToInFeed not virual so it compiles. --- Commit e89f04d80 authored by Yifei Feng Committed by Yifei Feng: Fix calling Literal member functions. --- Commit 15a8df724 authored by Yifei Feng Committed by Yifei Feng: Fix mac build clone from meheff's change: [XLA] Change return type of DeviceAssignment::Deserialize to fix build breakage on mac. The mac build had the following error: error: incomplete type 'xla::DeviceAssignment' used in type trait expression This was due to a static method returning a StatusOr inside of the definition of DeviceAssignment. --- Commit a54d43fa4 authored by Yifei Feng Committed by Yifei Feng: Replace LiteralUtil to Literal in compiler/plugin/executor --- Commit 88a6bb80c authored by Guenther Schmuelling Committed by Guenther Schmuelling: expand inline for debug builds to limit number of symbols --- Commit 62fb49d31 authored by Yifei Feng Committed by Yifei Feng: Fix visibility error for contrib/remote_fused_graph/pylib/BUILD. --- Commit 4c75252f2 authored by Mark Neumann Committed by Mark Neumann: fix initial test values to avoid numerical instability --- Commit b58d98353 authored by sj6077 Committed by Benoit Steiner: Fixes of AutoParallel bug (#10368) * Fix the bug that auto_parallel could replicate variable snapshot name * Use NodeName in grappler:utils instead of substr, convert variables->variable_def of grappler item * remove variable_def from grappler item, exclude snapshot nodes from dont_replicate_nodes in auto_parallel --- Commit a286b7db8 authored by Yifei Feng Committed by Yifei Feng: Make debug_test slice integer. --- Commit 97fcfdfa6 authored by Toby Boyd Committed by GitHub: Fixed path to seq2seq.py and minor formatting --- Commit 63c1befb8 authored by Anish Shah Committed by Anish Shah: Improve docs for tf.nn.depthwise_conv2d_native --- Commit 8d42202b2 authored by Yong Tang Committed by Yong Tang: Fix mismatched delete in mkl_tfconv_op.cc This fix fixes mismatched new[]-delete in mkl_tfconv_op.cc (the file went through clang-format so there are some additional changes) Signed-off-by: Yong Tang --- Commit 26301bd55 authored by Danny Goodman Committed by Danny Goodman: fix error format --- Commit b3f33ad46 authored by Yao Zhang Committed by TensorFlower Gardener: Make changes to prepare for the fused option of batch norm to be set to None (None means using fused batch norm if possible). PiperOrigin-RevId: 159649743 --- Commit a4a469832 authored by A. Unique TensorFlower Committed by TensorFlower Gardener: [XLA] Add tests for select ops and while loops that produce tuples that contain predicates. PiperOrigin-RevId: 159645900 --- Commit 980d3f2be authored by A. Unique TensorFlower Committed by TensorFlower Gardener: Use C API to implement Operation.name property This name property is used in many existing tests including those that already run with C API enabled (math_ops_test, framework_ops_test, session_test, session_partial_run_test, math_ops_test_gpu, etc). PiperOrigin-RevId: 159645767 --- Commit 26239c706 authored by A. Unique TensorFlower Committed by TensorFlower Gardener: Previously we didn't have an implementation of BatchNormInference and BatchNormTraining, which gives a linker error if anyone ever tries to call that. A dummy implementation is friendlier than a linker error. PiperOrigin-RevId: 159645612 --- Commit f671c5caa authored by A. Unique TensorFlower Committed by TensorFlower Gardener: BEGIN_PUBLIC Automated g4 rollback of changelist 159570549 PiperOrigin-RevId: 160182040 --- tools/tf_env_collect.sh | 143 ++++++++++++++++++++++++++---------------------- 1 file changed, 79 insertions(+), 64 deletions(-) (limited to 'tools') diff --git a/tools/tf_env_collect.sh b/tools/tf_env_collect.sh index abeebeadea..a1c9c88c58 100755 --- a/tools/tf_env_collect.sh +++ b/tools/tf_env_collect.sh @@ -16,49 +16,62 @@ set -u # Check for undefined variables -echo "Collecting system information..." - -OUTPUT_FILE=tf_env.txt - -echo >> $OUTPUT_FILE -echo "== cat /etc/issue ===============================================" >> $OUTPUT_FILE -uname -a >> $OUTPUT_FILE -uname=`uname -s` -if [ "$(uname)" == "Darwin" ]; then - echo Mac OS X `sw_vers -productVersion` >> $OUTPUT_FILE -elif [ "$(uname)" == "Linux" ]; then - cat /etc/*release | grep VERSION >> $OUTPUT_FILE -fi - - -echo >> $OUTPUT_FILE -echo '== are we in docker =============================================' >> $OUTPUT_FILE -num=`cat /proc/1/cgroup | grep docker | wc -l`; -if [ $num -ge 1 ]; then - echo "Yes" >> $OUTPUT_FILE -else - echo "No" >> $OUTPUT_FILE -fi - -echo >> $OUTPUT_FILE -echo '== compiler =====================================================' >> $OUTPUT_FILE -c++ --version 2>&1 >> $OUTPUT_FILE - -echo >> $OUTPUT_FILE -echo '== uname -a =====================================================' >> $OUTPUT_FILE -uname -a >> $OUTPUT_FILE +die() { + # Print a message and exit with code 1. + # + # Usage: die + # e.g., die "Something bad happened." -echo >> $OUTPUT_FILE -echo '== check pips ===================================================' >> $OUTPUT_FILE -pip list 2>&1 | grep "proto\|numpy\|tensorflow" >> $OUTPUT_FILE + echo $@ + exit 1 +} +echo "Collecting system information..." -echo >> $OUTPUT_FILE -echo '== check for virtualenv =========================================' >> $OUTPUT_FILE -python -c "import sys;print(hasattr(sys, \"real_prefix\"))" >> $OUTPUT_FILE +OUTPUT_FILE=tf_env.txt +python_bin_path=$(which python || which python3 || die "Cannot find Python binary") + +{ + echo + echo "== cat /etc/issue ===============================================" + uname -a + uname=`uname -s` + if [ "$(uname)" == "Darwin" ]; then + echo Mac OS X `sw_vers -productVersion` + elif [ "$(uname)" == "Linux" ]; then + cat /etc/*release | grep VERSION + fi + + echo + echo '== are we in docker =============================================' + num=`cat /proc/1/cgroup | grep docker | wc -l`; + if [ $num -ge 1 ]; then + echo "Yes" + else + echo "No" + fi + + echo + echo '== compiler =====================================================' + c++ --version 2>&1 + + echo + echo '== uname -a =====================================================' + uname -a + + echo + echo '== check pips ===================================================' + pip list 2>&1 | grep "proto\|numpy\|tensorflow" + + + echo + echo '== check for virtualenv =========================================' + ${python_bin_path} -c "import sys;print(hasattr(sys, \"real_prefix\"))" + + echo + echo '== tensorflow import ============================================' +} >> ${OUTPUT_FILE} -echo >> $OUTPUT_FILE -echo '== tensorflow import ============================================' >> $OUTPUT_FILE cat < /tmp/check_tf.py import tensorflow as tf; print("tf.VERSION = %s" % tf.VERSION) @@ -67,32 +80,34 @@ print("tf.COMPILER_VERSION = %s" % tf.GIT_VERSION) with tf.Session() as sess: print("Sanity check: %r" % sess.run(tf.constant([1,2,3])[:1])) EOF -python /tmp/check_tf.py 2>&1 >> ${OUTPUT_FILE} - -DEBUG_LD=libs python -c "import tensorflow" 2>>${OUTPUT_FILE} > /tmp/loadedlibs -grep libcudnn.so /tmp/loadedlibs >> $OUTPUT_FILE - -echo >> $OUTPUT_FILE -echo '== env ==========================================================' >> $OUTPUT_FILE -if [ -z ${LD_LIBRARY_PATH+x} ]; then - echo "LD_LIBRARY_PATH is unset" >> $OUTPUT_FILE; -else - echo LD_LIBRARY_PATH ${LD_LIBRARY_PATH} >> $OUTPUT_FILE; -fi -if [ -z ${DYLD_LIBRARY_PATH+x} ]; then - echo "DYLD_LIBRARY_PATH is unset" >> $OUTPUT_FILE; -else - echo DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH} >> $OUTPUT_FILE; -fi - - -echo >> $OUTPUT_FILE >> $OUTPUT_FILE -echo '== nvidia-smi ===================================================' >> $OUTPUT_FILE -nvidia-smi 2>&1 >> $OUTPUT_FILE - -echo >> $OUTPUT_FILE +${python_bin_path} /tmp/check_tf.py 2>&1 >> ${OUTPUT_FILE} + +DEBUG_LD=libs ${python_bin_path} -c "import tensorflow" 2>>${OUTPUT_FILE} > /tmp/loadedlibs + +{ + grep libcudnn.so /tmp/loadedlibs + echo + echo '== env ==========================================================' + if [ -z ${LD_LIBRARY_PATH+x} ]; then + echo "LD_LIBRARY_PATH is unset"; + else + echo LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ; + fi + if [ -z ${DYLD_LIBRARY_PATH+x} ]; then + echo "DYLD_LIBRARY_PATH is unset"; + else + echo DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH} ; + fi + + + echo + echo '== nvidia-smi ===================================================' + nvidia-smi 2>&1 + + echo + echo '== cuda libs ===================================================' +} >> ${OUTPUT_FILE} -echo '== cuda libs ===================================================' >> $OUTPUT_FILE 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} -- cgit v1.2.3