diff options
author | Vijay Vasudevan <vrv@google.com> | 2015-12-03 10:26:25 -0800 |
---|---|---|
committer | Vijay Vasudevan <vrv@google.com> | 2015-12-03 10:26:25 -0800 |
commit | a4806a3fba7c00bea3e7022477339b2d09539751 (patch) | |
tree | 76014083c9c02262cb9cda146de9512b2939eefa /tensorflow/python/kernel_tests/batch_matmul_op_test.py | |
parent | bb7a7a8858dc18ba733ed64e0733e27a4224ece8 (diff) |
TensorFlow: upstream changes to git.
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
Diffstat (limited to 'tensorflow/python/kernel_tests/batch_matmul_op_test.py')
-rw-r--r-- | tensorflow/python/kernel_tests/batch_matmul_op_test.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tensorflow/python/kernel_tests/batch_matmul_op_test.py b/tensorflow/python/kernel_tests/batch_matmul_op_test.py index 809b23bd7d..25e0abe014 100644 --- a/tensorflow/python/kernel_tests/batch_matmul_op_test.py +++ b/tensorflow/python/kernel_tests/batch_matmul_op_test.py @@ -151,14 +151,14 @@ class BatchMatmulOpTest(tf.test.TestCase): self._randComplex([10, 30, 75]), True, True) def testEmpty(self): - self._compare(np.empty([0, 3, 2]).astype(np.float32), - np.empty([0, 2, 4]).astype(np.float32), False, False) - self._compare(np.empty([3, 2, 0]).astype(np.float32), - np.empty([3, 0, 5]).astype(np.float32), False, False) - self._compare(np.empty([3, 0, 2]).astype(np.float32), - np.empty([3, 2, 5]).astype(np.float32), False, False) - self._compare(np.empty([3, 3, 2]).astype(np.float32), - np.empty([3, 2, 0]).astype(np.float32), False, False) + self._compare(np.zeros([0, 3, 2]).astype(np.float32), + np.zeros([0, 2, 4]).astype(np.float32), False, False) + self._compare(np.zeros([3, 2, 0]).astype(np.float32), + np.zeros([3, 0, 5]).astype(np.float32), False, False) + self._compare(np.zeros([3, 0, 2]).astype(np.float32), + np.zeros([3, 2, 5]).astype(np.float32), False, False) + self._compare(np.zeros([3, 3, 2]).astype(np.float32), + np.zeros([3, 2, 0]).astype(np.float32), False, False) class BatchMatmulGradientTest(tf.test.TestCase): |