mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Change 109321497 Move all images to images directory to make docs versioning easier - adjust all paths in the docs to point to the new locations - remove some now redundant section-order tags added for the old website Change 109317807 Added a kernel op to compute the eigendecomposition of a self-adjoint matrix. Added a new kernel op called self_adjoint_eig (and a batch_self_adjoint_eig) that computes the eigendecomposition of a self-adjoint matrix. The return value is the concatenation of the eigenvalues as a row vector, and the eigenvectors. Change 109310773 Change `_read32()` in the MNIST input example to return an int. Currently we return a 1-D numpy array with 1 element. Numpy has recently deprecated the ability to treat this as a scalar, and as a result this tutorial fails. The fix returns the 0th element of the array instead. Change 109301269 Re-arrange TensorBoard demo files. Change 109273589 add ci_build for ci.tensorflow.org Change 109260293 Speed up NodeDef -> OpKernel process by not spending time generating an error message for missing "_kernel" attr that will be thrown away. Change 109257179 TensorFlow:make event_file_loader_test hermetic by using tempfile instead of fixed filenames. Without this change, running event_file_loader_test twice in the same client (locally) causes it to fail, because it writes into the same file and appends another event, instead of starting from scratch. Change 109256464 Minor cleanup in TensorBoard server code Change 109255382 Change to reduce critical section times in gpu_event_mgr.h: (1) Call stream->ThenRecordEvent outside the EventMgr critical section (2) Do memory deallocation outside the critical section Speeds up one configuration of ptb_word_lm from 2924 words per second (wps) to 3278 wps on my desktop machine with a Titan X. Change 109254843 Fix use of uninitialized memory in test. Change 109250995 python_config.sh needs a license header Otherwise the license test fails. Change 109249914 add ci_build for ci.tensorflow.org Change 109249397 Fixes reduce_sum (complex) on GPU segfaults. Fixes #357 Change 109245652 add ci_build for ci.tensorflow.org Base CL: 109321563
94 lines
2.9 KiB
Bash
Executable File
94 lines
2.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2015 Google Inc. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# ==============================================================================
|
|
|
|
set -e -o errexit
|
|
|
|
EXPECTED_PATHS="util/python/python_include util/python/python_lib third_party/py/numpy/numpy_include"
|
|
|
|
function main {
|
|
argument="$1"
|
|
shift
|
|
case $argument in
|
|
--check)
|
|
check_python
|
|
exit 0
|
|
;;
|
|
--setup)
|
|
setup_python "$1"
|
|
exit 0
|
|
;;
|
|
esac
|
|
}
|
|
|
|
function setup_python {
|
|
PYTHON_BIN_PATH="$1";
|
|
|
|
if [ -z "$PYTHON_BIN_PATH" ]; then
|
|
echo "PYTHON_BIN_PATH was not provided. Did you run configure?"
|
|
exit 1
|
|
fi
|
|
if [ ! -x "$PYTHON_BIN_PATH" ] || [ -d "$PYTHON_BIN_PATH" ]; then
|
|
echo "PYTHON_BIN_PATH is not executable. Is it the python binary?"
|
|
exit 1
|
|
fi
|
|
|
|
local python_include=$("${PYTHON_BIN_PATH}" -c 'from __future__ import print_function; from distutils import sysconfig; print(sysconfig.get_python_inc());')
|
|
if [ "$python_include" == "" ]; then
|
|
echo -e "\n\nERROR: Problem getting python include path. Is distutils installed?"
|
|
exit 1
|
|
fi
|
|
local python_lib=$("${PYTHON_BIN_PATH}" -c 'from __future__ import print_function; from distutils import sysconfig; print(sysconfig.get_python_lib());')
|
|
if [ "$python_lib" == "" ]; then
|
|
echo -e "\n\nERROR: Problem getting python lib path. Is distutils installed?"
|
|
exit 1
|
|
fi
|
|
local numpy_include=$("${PYTHON_BIN_PATH}" -c 'from __future__ import print_function; import numpy; print(numpy.get_include());')
|
|
if [ "$numpy_include" == "" ]; then
|
|
echo -e "\n\nERROR: Problem getting numpy include path. Is numpy installed?"
|
|
exit 1
|
|
fi
|
|
|
|
for x in $EXPECTED_PATHS; do
|
|
if [ -e "$x" ]; then
|
|
rm "$x"
|
|
fi
|
|
done
|
|
|
|
ln -s "${python_include}" util/python/python_include
|
|
ln -s "${python_lib}" util/python/python_lib
|
|
ln -s "${numpy_include}" third_party/py/numpy/numpy_include
|
|
}
|
|
|
|
function check_python {
|
|
for x in $EXPECTED_PATHS; do
|
|
if [ ! -e "$x" ]; then
|
|
echo -e "\n\nERROR: Cannot find '${x}'. Did you run configure?\n\n" 1>&2
|
|
exit 1
|
|
fi
|
|
if [ ! -L "${x}" ]; then
|
|
echo -e "\n\nERROR: '${x}' is not a symbolic link. Internal error.\n\n" 1>&2
|
|
exit 1
|
|
fi
|
|
true_path=$(readlink "${x}")
|
|
if [ ! -d "${true_path}" ]; then
|
|
echo -e "\n\nERROR: '${x}' does not refer to an existing directory: ${true_path}. Do you need to rerun configure?\n\n" 1>&2
|
|
exit 1
|
|
fi
|
|
done
|
|
}
|
|
|
|
main "$@"
|