platform/upstream/tensorflow.git
6 years agoautograph: Update README (#18981)
Dan Moldovan [Mon, 30 Apr 2018 15:04:23 +0000 (11:04 -0400)]
autograph: Update README (#18981)

* Update README.md

6 years agofix typo (#18957)
ManHyuk [Mon, 30 Apr 2018 15:01:30 +0000 (00:01 +0900)]
fix typo (#18957)

6 years agoPass dtype to constructor in LSTMCell (#18178)
Yong Tang [Sat, 28 Apr 2018 19:06:15 +0000 (12:06 -0700)]
Pass dtype to constructor in LSTMCell (#18178)

* Use float32 in case the dtype is not set in the constructor

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add test case for 16228.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add test case where dype is passed explicitly.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix pylint issue

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Replace strings to objects to address review feedback.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoFix functions in CRF when sequence_lengths contains zero (#18487)
QingYing Chen [Sat, 28 Apr 2018 19:05:34 +0000 (03:05 +0800)]
Fix functions in CRF when sequence_lengths contains zero (#18487)

* Fix computation of crf_log_norm when sequence length is zero

* fix _single_seq_fn in crf when sequence_lengths contain zero

6 years agoEmphasis any `Estimator` (#18793)
Rholais Lii [Sat, 28 Apr 2018 19:05:00 +0000 (03:05 +0800)]
Emphasis any `Estimator` (#18793)

6 years agoAdd uint32 and uint64 support with tf.train.batch (#18805)
Yong Tang [Sat, 28 Apr 2018 19:04:45 +0000 (12:04 -0700)]
Add uint32 and uint64 support with tf.train.batch (#18805)

* Add uint32 and uint64 support with tf.train.batch

This fix tries to address the issue raised in 18586
to have uint32 and uint64 support with tf.train.batch.

This fix add uint32 and uint64 to `CopyElementToSlice`
for the support.

This fix fixes 18586.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add test case for uint32 with tf.train.batch

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add uint64 test case

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoFix typo in CMakeLists.txt (#18833)
Nehal J Wani [Sat, 28 Apr 2018 19:03:42 +0000 (14:03 -0500)]
Fix typo in CMakeLists.txt (#18833)

6 years agoFix link to original LSTM paper (#18876)
Stefan Schweter [Sat, 28 Apr 2018 19:03:15 +0000 (21:03 +0200)]
Fix link to original LSTM paper (#18876)

6 years agoMerge pull request #18944 from tensorflow/martinwicke-patch-3
Billy Lamberta [Sat, 28 Apr 2018 06:14:40 +0000 (23:14 -0700)]
Merge pull request #18944 from tensorflow/martinwicke-patch-3

Fix docs rendering in placeholder docs page.

6 years agoFix docs rendering in placeholder docs page.
Martin Wicke [Sat, 28 Apr 2018 06:04:58 +0000 (23:04 -0700)]
Fix docs rendering in placeholder docs page.

6 years agoRevised roadmap (#18939)
Sandeep N Gupta [Fri, 27 Apr 2018 23:38:24 +0000 (16:38 -0700)]
Revised roadmap (#18939)

Revised roadmap

6 years agoRoll forward the custom optimizers change (#18742)
gracehoney [Fri, 27 Apr 2018 20:07:16 +0000 (13:07 -0700)]
Roll forward the custom optimizers change (#18742)

6 years agoMerge pull request #18937 from lamberta/fix-typo
Billy Lamberta [Fri, 27 Apr 2018 19:37:50 +0000 (12:37 -0700)]
Merge pull request #18937 from lamberta/fix-typo

Docs: fix typo

6 years agoMerge pull request #18935 from drpngx/branch_194551042
drpngx [Fri, 27 Apr 2018 19:15:59 +0000 (13:15 -0600)]
Merge pull request #18935 from drpngx/branch_194551042

Branch 194551042

6 years agoDocs: fix typo
Billy Lamberta [Fri, 27 Apr 2018 18:47:42 +0000 (11:47 -0700)]
Docs: fix typo

6 years agoAdd DeviceSet to Cluster (#18838)
gracehoney [Fri, 27 Apr 2018 17:58:43 +0000 (10:58 -0700)]
Add DeviceSet to Cluster (#18838)

* Add DeviceSet to Cluster so we can access memory allocators during grappler optimizations

* Fix review comments

* Add missing dependency to :virtual_cluster and fix clang format.

6 years agoFix merge conflict manual merge error.
Patrick Nguyen [Fri, 27 Apr 2018 17:28:50 +0000 (10:28 -0700)]
Fix merge conflict manual merge error.

6 years agoMerge commit for internal changes
Patrick Nguyen [Fri, 27 Apr 2018 17:23:02 +0000 (10:23 -0700)]
Merge commit for internal changes

6 years agoMerge pull request #18727 from freedomtan/label_image_tflite_profiling_new
andrehentz [Fri, 27 Apr 2018 17:06:03 +0000 (10:06 -0700)]
Merge pull request #18727 from freedomtan/label_image_tflite_profiling_new

[tflite] add profiling to label_image for tflite

6 years agoAdded string conversion operator to tensorflow::StringPiece.
A. Unique TensorFlower [Fri, 27 Apr 2018 16:25:52 +0000 (09:25 -0700)]
Added string conversion operator to tensorflow::StringPiece.
Marked ToString method as deprecated.

This will allow tensorflow::StringPiece to be replaced with absl::string_view (once the deprecated method is removed) as absl::string_view does not contain the ToString method.

PiperOrigin-RevId: 194551042

6 years agoFix bug in @custom_gradient in Eager mode with numpy inputs
A. Unique TensorFlower [Fri, 27 Apr 2018 14:21:37 +0000 (07:21 -0700)]
Fix bug in @custom_gradient in Eager mode with numpy inputs

PiperOrigin-RevId: 194538828

6 years ago[TF:XLA] Bump open source llvm revision to r330926
Sanjoy Das [Fri, 27 Apr 2018 12:31:38 +0000 (05:31 -0700)]
[TF:XLA] Bump open source llvm revision to r330926

PiperOrigin-RevId: 194530610

6 years agoAutomated g4 rollback of changelist 194306629
Yu-Cheng Ling [Fri, 27 Apr 2018 07:07:07 +0000 (00:07 -0700)]
Automated g4 rollback of changelist 194306629

PiperOrigin-RevId: 194507274

6 years agoReenable factorization_ops_test on ASAN after adding shard_count = 4. Tests now
A. Unique TensorFlower [Fri, 27 Apr 2018 05:06:36 +0000 (22:06 -0700)]
Reenable factorization_ops_test on ASAN after adding shard_count = 4. Tests now
finish with these stats: "max = 150.6s, min = 27.4s, avg = 66.3s, dev = 19.5s" over 1000 runs and this runtime distribution should be fairly safe for deadline of 300s.

PiperOrigin-RevId: 194500204

6 years agoImplement floor operator
A. Unique TensorFlower [Fri, 27 Apr 2018 02:35:10 +0000 (19:35 -0700)]
Implement floor operator

PiperOrigin-RevId: 194490433

6 years agoAutomated g4 rollback of changelist 194442428
A. Unique TensorFlower [Fri, 27 Apr 2018 01:24:48 +0000 (18:24 -0700)]
Automated g4 rollback of changelist 194442428

PiperOrigin-RevId: 194485227

6 years agoFree scratch memory in ~BaseGPUDevice.
A. Unique TensorFlower [Fri, 27 Apr 2018 01:03:50 +0000 (18:03 -0700)]
Free scratch memory in ~BaseGPUDevice.

PiperOrigin-RevId: 194483351

6 years agoImplements linear no-offset (aka symmetric) quantizer.
A. Unique TensorFlower [Fri, 27 Apr 2018 00:56:08 +0000 (17:56 -0700)]
Implements linear no-offset (aka symmetric) quantizer.

PiperOrigin-RevId: 194482547

6 years agoSplit out SaveableObjects into their own file
Allen Lavoie [Thu, 26 Apr 2018 23:40:16 +0000 (16:40 -0700)]
Split out SaveableObjects into their own file

Pulls a couple build rules out of tensorflow/python:training. I'd like to use a SaveableObject in :checkpointable (for saving some Python state by default), which means the file with SaveableObject has to be essientially dependency-free.

PiperOrigin-RevId: 194473987

6 years agoMore informative error message when loading a graph_def which uses unknown ops.
Malcolm Reynolds [Thu, 26 Apr 2018 23:24:51 +0000 (16:24 -0700)]
More informative error message when loading a graph_def which uses unknown ops.
Fixes #17014

PiperOrigin-RevId: 194472083

6 years agoFix some flakiness in test.
Shashi Shekhar [Thu, 26 Apr 2018 23:11:11 +0000 (16:11 -0700)]
Fix some flakiness in test.

PiperOrigin-RevId: 194470125

6 years agoInternal change.
A. Unique TensorFlower [Thu, 26 Apr 2018 23:01:00 +0000 (16:01 -0700)]
Internal change.

PiperOrigin-RevId: 194468535

6 years agoMerge pull request #18846 from yongtang/04252018-FloorDiv-int8
ekelsen [Thu, 26 Apr 2018 22:49:48 +0000 (15:49 -0700)]
Merge pull request #18846 from yongtang/04252018-FloorDiv-int8

Enable int8 support for FloorDiv

6 years agoHandle variations in scoping of batch norms for correct unfused batch norm folding.
Raghuraman Krishnamoorthi [Thu, 26 Apr 2018 22:40:15 +0000 (15:40 -0700)]
Handle variations in scoping of batch norms for correct unfused batch norm folding.

PiperOrigin-RevId: 194465704

6 years agoRemove the inter-op thread pool
Sanjoy Das [Thu, 26 Apr 2018 22:33:38 +0000 (15:33 -0700)]
Remove the inter-op thread pool

Forgot about this in cl/194299356.  However, when I checked cl/194299356, I
found that we actually (incorrectly?) used the *intra* op thread pool in the
parallel CPU executable?  Does that mean the inter op thread pool was always
unused?

PiperOrigin-RevId: 194464734

6 years agoMerge pull request #18881 from ManHyuk/fix_typo
ekelsen [Thu, 26 Apr 2018 22:32:44 +0000 (15:32 -0700)]
Merge pull request #18881 from ManHyuk/fix_typo

fix typo

6 years agoMerge pull request #18907 from yongtang/18363-mpi
ekelsen [Thu, 26 Apr 2018 22:30:35 +0000 (15:30 -0700)]
Merge pull request #18907 from yongtang/18363-mpi

Fix build error with MPI support

6 years ago[tf.data] Adds support for adding scalar value to `StatsAggregator`.
Shivani Agrawal [Thu, 26 Apr 2018 22:24:44 +0000 (15:24 -0700)]
[tf.data] Adds support for adding scalar value to `StatsAggregator`.

PiperOrigin-RevId: 194463407

6 years agoMerge pull request #18896 from KikaTech/fix_lite_topk
ekelsen [Thu, 26 Apr 2018 22:27:08 +0000 (15:27 -0700)]
Merge pull request #18896 from KikaTech/fix_lite_topk

Fix some issues in official tf.nn.topk() in lite

6 years ago[tf.data] Changes description for `bytes_produced_stats` and `latency_stats` in accor...
Shivani Agrawal [Thu, 26 Apr 2018 22:15:37 +0000 (15:15 -0700)]
[tf.data] Changes description for `bytes_produced_stats` and `latency_stats` in accordance with the breaking changes in cl/193432590.

PiperOrigin-RevId: 194461964

6 years ago- Default values of cov and inv variables are now 0. Zero-debiasing (as in Adam...
James Martens [Thu, 26 Apr 2018 22:13:48 +0000 (15:13 -0700)]
- Default values of cov and inv variables are now 0.  Zero-debiasing (as in Adam) is used for the cov matrices.  Note this this requires that cov variables, then inv variables, are all updated before the first training update is made.  All examples have been modified to do this. NOTE: you *may* have to increase the damping value you use at the start of optimization after this change (or throughout, if you are using a constant value).
- Changed the initial default approximation used for generic registrations to "diagonal"
- Convenience properties for ops and thunks have all been removed, along with "make_ops_and_vars". User should only interface with "make_vars_and_create_op_thunks" (or maybe "create_ops_and_vars_thunks").

PiperOrigin-RevId: 194461623

6 years agoAdd support for variables in tf.custom_gradient
A. Unique TensorFlower [Thu, 26 Apr 2018 22:08:24 +0000 (15:08 -0700)]
Add support for variables in tf.custom_gradient

PiperOrigin-RevId: 194460752

6 years agoDisable triangular_solve_test on ASAN due to flaky time outs.
A. Unique TensorFlower [Thu, 26 Apr 2018 22:07:43 +0000 (15:07 -0700)]
Disable triangular_solve_test on ASAN due to flaky time outs.

PiperOrigin-RevId: 194460641

6 years agoEdit tensorflow.org/community/swift page.
Daniel Zheng [Thu, 26 Apr 2018 22:02:53 +0000 (15:02 -0700)]
Edit tensorflow.org/community/swift page.

PiperOrigin-RevId: 194459754

6 years agoAdds optimization to convert division of sqrt to multiplication of rsqrt
A. Unique TensorFlower [Thu, 26 Apr 2018 21:59:29 +0000 (14:59 -0700)]
Adds optimization to convert division of sqrt to multiplication of rsqrt

PiperOrigin-RevId: 194459152

6 years agoDisable densenet_test on MSAN due to flaky time outs.
A. Unique TensorFlower [Thu, 26 Apr 2018 21:53:19 +0000 (14:53 -0700)]
Disable densenet_test on MSAN due to flaky time outs.

PiperOrigin-RevId: 194458270

6 years agoMerge branch 'master' into label_image_tflite_profiling_new
Martin Wicke [Thu, 26 Apr 2018 21:12:43 +0000 (14:12 -0700)]
Merge branch 'master' into label_image_tflite_profiling_new

6 years agoRemove unnecessary TF_NEED_GCP from build scripts.
A. Unique TensorFlower [Thu, 26 Apr 2018 20:53:17 +0000 (13:53 -0700)]
Remove unnecessary TF_NEED_GCP from build scripts.

PiperOrigin-RevId: 194448612

6 years agoFix cmake build issues with GPU on Linux (#18775)
Yong Tang [Thu, 26 Apr 2018 20:47:51 +0000 (13:47 -0700)]
Fix cmake build issues with GPU on Linux (#18775)

* Update include file for cmake

While attempting to build tensorflow with cmake for gpu the following
build error happens:
```
/home/ubuntu/tensorflow/tensorflow/core/platform/default/gpu/cupti_wrapper.h:26:45: fatal error: cuda/extras/CUPTI/include/cupti.h: No such file or directory
compilation terminated.
CMakeFiles/tf_core_cpu.dir/build.make:3302: recipe for target 'CMakeFiles/tf_core_cpu.dir/home/ubuntu/tensorflow/tensorflow/core/platform/default/gpu/cupti_wrapper.cc.o' failed
make[2]: *** [CMakeFiles/tf_core_cpu.dir/home/ubuntu/tensorflow/tensorflow/core/platform/default/gpu/cupti_wrapper.cc.o] Error 1
CMakeFiles/Makefile2:2402: recipe for target 'CMakeFiles/tf_core_cpu.dir/all' failed
make[1]: *** [CMakeFiles/tf_core_cpu.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
```
This fix tries to fix the build error above for cmake.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add xla dependency to stream_executor

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Remove nccl files temporarily

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add gomp library to libcusolver.so

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix cmake issue

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoMerge pull request #17602 from joeyearsley/patch-1
Martin Wicke [Thu, 26 Apr 2018 20:45:56 +0000 (13:45 -0700)]
Merge pull request #17602 from joeyearsley/patch-1

Update fold_old_batch_norms.cc to accommodate 'NCHW' format.

6 years agoAdding some slightly more exhaustive strided_slice test parameters.
A. Unique TensorFlower [Thu, 26 Apr 2018 20:35:35 +0000 (13:35 -0700)]
Adding some slightly more exhaustive strided_slice test parameters.

PiperOrigin-RevId: 194446000

6 years ago[TF:XLA] Add INTEL MKL_DNN Conv2d method to XLA/CPU backend
Tony Wang [Thu, 26 Apr 2018 20:30:15 +0000 (13:30 -0700)]
[TF:XLA] Add INTEL MKL_DNN Conv2d method to XLA/CPU backend

The INTEL MKL_DNN provides 32-bit Conv2d method. With INTEL_MKL flag set,
XLA backend emits runtime call to MKL_DNN Conv2d instead of Eigen.

PiperOrigin-RevId: 194445212

6 years agoRun 2 passes of rewrites by default
Benoit Steiner [Thu, 26 Apr 2018 20:19:39 +0000 (13:19 -0700)]
Run 2 passes of rewrites by default

PiperOrigin-RevId: 194443770

6 years agoFix build error with MPI support
Yong Tang [Thu, 26 Apr 2018 20:21:18 +0000 (20:21 +0000)]
Fix build error with MPI support

This fix tries to fix the issue raised in 18363 where
the bazel build with MPI support fails as a header is missing
in the include.

This fix fixes the issue. The fix is verified locally
with MPI+CUDA on Ubuntu 16.04.

This fix fixes 18363.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoDelay deleting RingReducer until group_size_tensor_ready_ has
A. Unique TensorFlower [Thu, 26 Apr 2018 20:15:55 +0000 (13:15 -0700)]
Delay deleting RingReducer until group_size_tensor_ready_ has
been notified.  Otherwise this can result in a bad pointer dereference
under some early abort conditions.

PiperOrigin-RevId: 194443206

6 years agoFix build by adding op_lib dependencies to trt_engine_op_loader, and remove
Guangda Lai [Thu, 26 Apr 2018 20:12:04 +0000 (13:12 -0700)]
Fix build by adding op_lib dependencies to trt_engine_op_loader, and remove
unnecessary dependency from the tf_gen_op_libs.

PiperOrigin-RevId: 194442728

6 years agoAutomated g4 rollback of changelist 194269675
A. Unique TensorFlower [Thu, 26 Apr 2018 20:10:05 +0000 (13:10 -0700)]
Automated g4 rollback of changelist 194269675

PiperOrigin-RevId: 194442428

6 years agogRPC worker cache owns a shared_ptr to the channel cache
Akshay Modi [Thu, 26 Apr 2018 20:05:55 +0000 (13:05 -0700)]
gRPC worker cache owns a shared_ptr to the channel cache

PiperOrigin-RevId: 194441794

6 years agoFor tf.gradients(), do not backpropagate through integer tensors.
A. Unique TensorFlower [Thu, 26 Apr 2018 19:42:54 +0000 (12:42 -0700)]
For tf.gradients(), do not backpropagate through integer tensors.
All integer tensors are now considered constant with respect to all `xs`.
This fixes a bug in gradients through tf.while_loop.

PiperOrigin-RevId: 194438529

6 years agoOptimize functions in the function library.
A. Unique TensorFlower [Thu, 26 Apr 2018 19:12:06 +0000 (12:12 -0700)]
Optimize functions in the function library.

PiperOrigin-RevId: 194434546

6 years agoMove */logging.cc into :platform_base since it already exposes the header loggging.h
A. Unique TensorFlower [Thu, 26 Apr 2018 19:10:34 +0000 (12:10 -0700)]
Move */logging.cc into :platform_base since it already exposes the header loggging.h

This also brings env_time.h and env_time.cc, because on the 'default' platform logging needs env_time.

Add helpers tf_platform_srcs and tf_platform_hdrs to deal with files
that are not necessarily available in all platforms.

PiperOrigin-RevId: 194434322

6 years agoSimplify, test and document logic in instruction fusion that decides whether we
A. Unique TensorFlower [Thu, 26 Apr 2018 18:40:46 +0000 (11:40 -0700)]
Simplify, test and document logic in instruction fusion that decides whether we
allow fusion when an operation needs to be duplicated.

PiperOrigin-RevId: 194429279

6 years agoRemoving @@ comments from core TensorFlow. They are no longer needed for exporting...
Anna R [Thu, 26 Apr 2018 18:25:43 +0000 (11:25 -0700)]
Removing @@ comments from core TensorFlow. They are no longer needed for exporting symbols to the TensorFlow API.

PiperOrigin-RevId: 194426855

6 years agoDeprecate tfe.Network and associated utilities in favor of tf.keras.Model.
Allen Lavoie [Thu, 26 Apr 2018 18:24:36 +0000 (11:24 -0700)]
Deprecate tfe.Network and associated utilities in favor of tf.keras.Model.

Also throws an error rather than silently saving incorrectly with tf.train.Checkpoint.

(In response to confusion over tf.train.Checkpoint with tfe.Network)

PiperOrigin-RevId: 194426679

6 years agoMerge pull request #18885 from drpngx/branch_194337205
Yifei Feng [Thu, 26 Apr 2018 18:27:25 +0000 (11:27 -0700)]
Merge pull request #18885 from drpngx/branch_194337205

Branch 194337205

6 years agoAutomated g4 rollback of changelist 192536085
A. Unique TensorFlower [Thu, 26 Apr 2018 18:24:26 +0000 (11:24 -0700)]
Automated g4 rollback of changelist 192536085

PiperOrigin-RevId: 194426650

6 years agoUpdates on https://www.tensorflow.org/community/swift as part of the S4TF OSS launch...
Mingsheng Hong [Thu, 26 Apr 2018 17:49:01 +0000 (10:49 -0700)]
Updates on https://tensorflow.org/community/swift as part of the S4TF OSS launch on 4/26 morning.

PiperOrigin-RevId: 194419822

6 years agoAdd a skeleton dispatch context object, that can be used to control the dispatch...
Dan Moldovan [Thu, 26 Apr 2018 17:31:21 +0000 (10:31 -0700)]
Add a skeleton dispatch context object, that can be used to control the dispatch rules and pass implementation-specific information down to the specialized operators.

PiperOrigin-RevId: 194416937

6 years agoRemove "everything matched" assertions from CuDNN object-based checkpointing tests
Allen Lavoie [Thu, 26 Apr 2018 17:30:54 +0000 (10:30 -0700)]
Remove "everything matched" assertions from CuDNN object-based checkpointing tests

After cl/194315742 the assertions correctly point out that there are some Python objects which aren't matched (they don't have variables). Another option would be to mark these as special/optional, which we can implement if there's a need.

PiperOrigin-RevId: 194416864

6 years agoLimit the number of single allocation memory warnings.
Russell Power [Thu, 26 Apr 2018 17:25:04 +0000 (10:25 -0700)]
Limit the number of single allocation memory warnings.

PiperOrigin-RevId: 194415953

6 years agoDisable wrappers_test under ASAN since it sometimes times out.
A. Unique TensorFlower [Thu, 26 Apr 2018 17:13:03 +0000 (10:13 -0700)]
Disable wrappers_test under ASAN since it sometimes times out.

PiperOrigin-RevId: 194413982

6 years agoSimplify tfe.defun capture by not using convert_to_tensor
Alexandre Passos [Thu, 26 Apr 2018 17:11:14 +0000 (10:11 -0700)]
Simplify tfe.defun capture by not using convert_to_tensor

PiperOrigin-RevId: 194413685

6 years agoFix conflict.
Patrick Nguyen [Thu, 26 Apr 2018 17:00:06 +0000 (10:00 -0700)]
Fix conflict.

Use the exposed Scaffold.default_init_op instead of _default_init_op.

6 years agoFixing issue #13258. y is the square of Mahalanobis distance actually.
Yanping Huang [Thu, 26 Apr 2018 16:56:00 +0000 (09:56 -0700)]
Fixing issue #13258. y is the square of Mahalanobis distance actually.

PiperOrigin-RevId: 194411230

6 years agoDisable vector_diffeomixture_test under ASAN to avoid timeouts.
A. Unique TensorFlower [Thu, 26 Apr 2018 16:44:30 +0000 (09:44 -0700)]
Disable vector_diffeomixture_test under ASAN to avoid timeouts.

PiperOrigin-RevId: 194409698

6 years agotfdbg: disable grpc_large_data_test on ASAN
Shanqing Cai [Thu, 26 Apr 2018 15:53:46 +0000 (08:53 -0700)]
tfdbg: disable grpc_large_data_test on ASAN

PiperOrigin-RevId: 194402869

6 years agoMerge pull request #18883 from av8ramit/fix_master_keras_bin_acc
Amit Patankar [Thu, 26 Apr 2018 15:35:48 +0000 (08:35 -0700)]
Merge pull request #18883 from av8ramit/fix_master_keras_bin_acc

Fix critical metrics computation bug with Model in Eager mode.

6 years agoMerge pull request #18842 from aaroey/substr_bug_fix
gracehoney [Thu, 26 Apr 2018 14:33:34 +0000 (07:33 -0700)]
Merge pull request #18842 from aaroey/substr_bug_fix

Fix a bug where string::substr is used with wrong position.

6 years agoFormat header guards under tensorflow/core/grappler.
A. Unique TensorFlower [Thu, 26 Apr 2018 13:15:30 +0000 (06:15 -0700)]
Format header guards under tensorflow/core/grappler.

PiperOrigin-RevId: 194387041

6 years ago- Adding support for Cholesky (inverse) factor multiplications.
James Martens [Thu, 26 Apr 2018 11:37:28 +0000 (04:37 -0700)]
- Adding support for Cholesky (inverse) factor multiplications.
- Refactored FisherFactor to use LinearOperator classes that know how to multiply themselves, compute their own trace, etc. This addresses the feature request: b/73356352
- Fixed some problems with FisherEstimator construction
- More careful casting of damping constants before they are used

PiperOrigin-RevId: 194379298

6 years agoSupport matching against shape string in HLO testing matchers
A. Unique TensorFlower [Thu, 26 Apr 2018 10:40:24 +0000 (03:40 -0700)]
Support matching against shape string in HLO testing matchers

After this change a test can use op::Shape("f32[7,11]") instead of the
longer and harder to read op::Shape(ShapeUtil::MakeShape(F32, {7, 11}))
format.

PiperOrigin-RevId: 194373704

6 years agoClarify limitation of `deps` in tf_gen_op_wrapper_py
A. Unique TensorFlower [Thu, 26 Apr 2018 10:21:43 +0000 (03:21 -0700)]
Clarify limitation of `deps` in tf_gen_op_wrapper_py

PiperOrigin-RevId: 194372273

6 years agoFix some issues in official tf.nn.topk() in lite
Scott Tseng [Thu, 26 Apr 2018 09:30:08 +0000 (17:30 +0800)]
Fix some issues in official tf.nn.topk() in lite

6 years agoSupport CuDNN RNN layers in tf.keras.
Pavithra Vijay [Thu, 26 Apr 2018 07:14:10 +0000 (00:14 -0700)]
Support CuDNN RNN layers in tf.keras.

PiperOrigin-RevId: 194355293

6 years ago[XLA] Redesign: migrate other xla/tests to use the new buidler.
A. Unique TensorFlower [Thu, 26 Apr 2018 07:02:19 +0000 (00:02 -0700)]
[XLA] Redesign: migrate other xla/tests to use the new buidler.

- The set_return_value_test is not migrated because XlaBuilder does not support SetReturnValue.
- Delete a compute_constant_test case since ComputeConstant no longer accepts parameters.
- Delete CompilationCacheTest.MutatedComputation since the case no longer exists.
- Correct WhileTest.WhileWithMixedTupleElements which used an op from one builder in another builder.
- Disabled all CompilationCacheTest since there is no caching in the new design right now.

PiperOrigin-RevId: 194354250

6 years agoAdded metadata to the TFLite model.
A. Unique TensorFlower [Thu, 26 Apr 2018 03:49:52 +0000 (20:49 -0700)]
Added metadata to the TFLite model.

PiperOrigin-RevId: 194341479

6 years agoMerge commit for internal changes.
Patrick Nguyen [Thu, 26 Apr 2018 03:30:00 +0000 (20:30 -0700)]
Merge commit for internal changes.

6 years agoDisable gather_test under ASAN since it times out.
A. Unique TensorFlower [Thu, 26 Apr 2018 03:11:00 +0000 (20:11 -0700)]
Disable gather_test under ASAN since it times out.

PiperOrigin-RevId: 194338928

6 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Thu, 26 Apr 2018 02:47:06 +0000 (19:47 -0700)]
Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 194337205

6 years agoImprove shape invariant error message for tf.while_loop.
Skye Wanderman-Milne [Thu, 26 Apr 2018 02:43:14 +0000 (19:43 -0700)]
Improve shape invariant error message for tf.while_loop.

PiperOrigin-RevId: 194336902

6 years agoReduce number of combinations that are tested
A. Unique TensorFlower [Thu, 26 Apr 2018 02:18:53 +0000 (19:18 -0700)]
Reduce number of combinations that are tested

PiperOrigin-RevId: 194335483

6 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Thu, 26 Apr 2018 02:18:20 +0000 (19:18 -0700)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 194335460

6 years agoCudnn RNN v2 kernels with autotune capability
James Qin [Thu, 26 Apr 2018 02:00:21 +0000 (19:00 -0700)]
Cudnn RNN v2 kernels with autotune capability

CudnnRNN V2 kernels run all applicable cudnn rnn algorithms and pick the best one for following runs.
* To enable autotune, TF_CUDNN_RNN_USE_AUTOTUNE and TF_CUDNN_RNN_USE_V2 need to be set to {"1" or unset}.
* TF_CUDNN_RNN_USE_AUTOTUNE does not work with existing CudnnRNN kernels.
* V2 kernels work with existing cudnn checkpoints, since it doesn't change persistence format.

This change
* Introduces v2 kernels as templates inheriting the v1 kernels.
* Profiles fwd and bak runs in v2 kernel (forward pass)
* Exposes the chosen algorithm as fwd op output and bak op input.
* Changes rnn descriptor cache key to include AlgorithmDesc (since cudnn rnn descriptor can't be reused across different algorithms)
* Updates unittests s.t. it tests both v1 and v2 kernels. When testing v2 kernels, autotune is turned on.

PiperOrigin-RevId: 194333948

6 years agoFix critical metrics computation bug with Model in Eager mode.
Francois Chollet [Wed, 25 Apr 2018 00:00:40 +0000 (17:00 -0700)]
Fix critical metrics computation bug with Model in Eager mode.

6 years agoPreserve guarantees about const-ness when creating TensorFlow functions.
Akshay Agrawal [Thu, 26 Apr 2018 00:59:01 +0000 (17:59 -0700)]
Preserve guarantees about const-ness when creating TensorFlow functions.

PiperOrigin-RevId: 194328218

6 years agoremove extra whitespace
freedom" Koan-Sin Tan [Thu, 26 Apr 2018 00:58:19 +0000 (08:58 +0800)]
remove extra whitespace

remove extra whitespace shouldn't be there

6 years agofix typo
manhyuk [Thu, 26 Apr 2018 00:26:53 +0000 (09:26 +0900)]
fix typo

6 years agoAutomated g4 rollback of changelist 194268101
A. Unique TensorFlower [Wed, 25 Apr 2018 23:37:02 +0000 (16:37 -0700)]
Automated g4 rollback of changelist 194268101

PiperOrigin-RevId: 194318022

6 years ago[XLA] Redesign: local_client_test_base and tests that depend on it.
A. Unique TensorFlower [Wed, 25 Apr 2018 23:31:14 +0000 (16:31 -0700)]
[XLA] Redesign: local_client_test_base and tests that depend on it.

PiperOrigin-RevId: 194317245

6 years agoVarious small cleanups and simplifications
Benoit Steiner [Wed, 25 Apr 2018 23:22:29 +0000 (16:22 -0700)]
Various small cleanups and simplifications

PiperOrigin-RevId: 194316037