platform/upstream/tensorflow.git
6 years agofixed DirectSessionWithTrackingAllocTest keyboard_arrow_right CostModelTest
Ankur Taly [Wed, 23 May 2018 21:34:23 +0000 (14:34 -0700)]
fixed  DirectSessionWithTrackingAllocTest keyboard_arrow_right CostModelTest

6 years agoMerge commit for internal changes
Ankur Taly [Tue, 22 May 2018 17:44:24 +0000 (10:44 -0700)]
Merge commit for internal changes

6 years agoMake init_scope preserve the inner device stack when lifting into a graph.
Akshay Agrawal [Tue, 22 May 2018 17:26:00 +0000 (10:26 -0700)]
Make init_scope preserve the inner device stack when lifting into a graph.

Eager execution doesn't implement device stacks and in particular it doesn't support device functions (which determine the device on a per-op basis), so in general it's not possible to do the same when lifting into the eager context.

PiperOrigin-RevId: 197583446

6 years agoMerge pull request #17025 from kr-ish/numpy_input_fn_none_check
Michael Case [Tue, 22 May 2018 16:59:54 +0000 (09:59 -0700)]
Merge pull request #17025 from kr-ish/numpy_input_fn_none_check

Adds a check for shuffle=None in numpy_input_fn

6 years agoMerge pull request #19445 from yongtang/05122018-link
Michael Case [Tue, 22 May 2018 16:56:49 +0000 (09:56 -0700)]
Merge pull request #19445 from yongtang/05122018-link

Fix incorrect link for nvidia drivers

6 years agoMerge pull request #19462 from yongtang/05212018-docs-math_ops
Michael Case [Tue, 22 May 2018 16:51:02 +0000 (09:51 -0700)]
Merge pull request #19462 from yongtang/05212018-docs-math_ops

Fix discrepancies between doc and implementation for math_ops

6 years agoSpecial case the 'dict' call, which trips other mechanisms for built-ins.
Dan Moldovan [Tue, 22 May 2018 16:43:06 +0000 (09:43 -0700)]
Special case the 'dict' call, which trips other mechanisms for built-ins.

PiperOrigin-RevId: 197576297

6 years ago[TF:XLA] Fix xla_interpreter_device build
Benjamin Kramer [Tue, 22 May 2018 16:08:06 +0000 (09:08 -0700)]
[TF:XLA] Fix xla_interpreter_device build

PiperOrigin-RevId: 197571618

6 years agoContributing guidelines, style guide and README updates
A. Unique TensorFlower [Tue, 22 May 2018 15:18:11 +0000 (08:18 -0700)]
Contributing guidelines, style guide and README updates

PiperOrigin-RevId: 197564905

6 years agoUpdate calls to addPassesToEmitFile
A. Unique TensorFlower [Tue, 22 May 2018 15:14:49 +0000 (08:14 -0700)]
Update calls to addPassesToEmitFile

PiperOrigin-RevId: 197564506

6 years agoFix a couple of broken links in the Swift For TensorFlow page.
A. Unique TensorFlower [Tue, 22 May 2018 15:12:41 +0000 (08:12 -0700)]
Fix a couple of broken links in the Swift For TensorFlow page.

PiperOrigin-RevId: 197564254

6 years agoAutomated g4 rollback of changelist 197527651
A. Unique TensorFlower [Tue, 22 May 2018 15:02:39 +0000 (08:02 -0700)]
Automated g4 rollback of changelist 197527651

PiperOrigin-RevId: 197562826

6 years ago[XLA:TF] Run buildifier on llvm.BUILD
Benjamin Kramer [Tue, 22 May 2018 14:06:08 +0000 (07:06 -0700)]
[XLA:TF] Run buildifier on llvm.BUILD

Buildifier recently started sorting load args
https://github.com/bazelbuild/buildtools/commit/3ac5f85b22bc44820c041d0cacd3bc2ed54e7742 which causes diffs in the output.

PiperOrigin-RevId: 197556554

6 years agoFix typo (#19450)
ManHyuk [Tue, 22 May 2018 13:43:40 +0000 (22:43 +0900)]
Fix typo (#19450)

6 years ago[XLA] Optimize ShapeTree<T>
A. Unique TensorFlower [Tue, 22 May 2018 12:50:34 +0000 (05:50 -0700)]
[XLA] Optimize ShapeTree<T>
This optimizes ShapeTree quite significantly. In particular this optimizes for the common case of querying/iterating, copying and moving ShapeTrees.

  * Allocate all ShapeTreeNodes inside a single, owned, vector. This reduces the number of memory allocations and improves cache performance.
  * Instead of storing children nodes as unique_ptrs, store them as indices into the owning container's vector. This allows cheap copy-construction (a std::vector POD copy) and doesn't change the fast path (dereferencing a pointer is just as fast as dereferencing a base + offset).
  * Instead of a unique_ptr<Shape>, use a shared_ptr<Shape>. This removes a load of copy-construction overhead at the cost of a shared_ptr over a unique_ptr (one extra allocation).
  * Instead of computing ShapeIndexes on-demand in the iterators/ForEach*, precompute them during construction time. This adds a few more bytes per ShapeTree, but now we can...
  * ... store a std::pair<ShapeIndex, T> as the ShapeTreeNode's data element. This allows us to provide a std::pair<K,V>&, STL-like interface from iterators without going through any of the previous unique_ptr hacks around storage lifetimes.
  * Because we no longer need to iterate from the beginning to build up the ShapeIndex, we can now offer a ::find() function to return an iterator for a ShapeIndex in O(K) time. As the iteration order is guaranteed to be pre-order, this can be used (and will be, later) to speed up the fast-path of mutating a subtree of a ShapeTree from tf2xla::ExtractSubBuffers.
  * Similarly because we now have a very standard, cheap STL interface with no performance cliffs, we can hopefully improve ShapedBuffer's copy and move constructors to be cheaper.

PiperOrigin-RevId: 197548717

6 years agointernal change
A. Unique TensorFlower [Tue, 22 May 2018 09:27:45 +0000 (02:27 -0700)]
internal change

PiperOrigin-RevId: 197533162

6 years agobatch_util.h is generally useful so moved to util/ from kernels/ where it will be...
A. Unique TensorFlower [Tue, 22 May 2018 09:21:30 +0000 (02:21 -0700)]
batch_util.h is generally useful so moved to util/ from kernels/ where it will be included in the pip package.

PiperOrigin-RevId: 197532524

6 years agoconvert Pow op into something that is more recognizable, so we can have further
A. Unique TensorFlower [Tue, 22 May 2018 08:35:36 +0000 (01:35 -0700)]
convert Pow op into something that is more recognizable, so we can have further
optimizations.

PiperOrigin-RevId: 197527651

6 years agoAutomated g4 rollback of changelist 197487461
A. Unique TensorFlower [Tue, 22 May 2018 08:01:01 +0000 (01:01 -0700)]
Automated g4 rollback of changelist 197487461

PiperOrigin-RevId: 197523867

6 years agoUnifiy the cuda toolchain definition of gcc/nvcc and cuda-clang.
A. Unique TensorFlower [Tue, 22 May 2018 07:44:47 +0000 (00:44 -0700)]
Unifiy the cuda toolchain definition of gcc/nvcc and cuda-clang.

gcc >= 7 will change how it treats -pie [1]; passing -pie after -shared
on the command line is not possible any more; given that the legacy way to
configure flags in the gcc/nvcc toolchain does not allow control over where
the flags go or how to provide -pie only for linking of binaries, we can
prevent this from breaking in the future by also using the new feature
mechanism for gcc/nvcc.

In addition to moving the gcc-specific workarounds in the toolchain to
cuda_configure.bzl, document them, so we don't need to rediscover them in the
future.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464

PiperOrigin-RevId: 197522719

6 years agoEnable tpu.rewrite to work on XLA CPU/GPU backends.
A. Unique TensorFlower [Tue, 22 May 2018 06:37:12 +0000 (23:37 -0700)]
Enable tpu.rewrite to work on XLA CPU/GPU backends.

PiperOrigin-RevId: 197517946

6 years ago[XLA:GPU] Implement trivial (one-replica) cross-replica-sum on XLA:GPU.
Justin Lebar [Tue, 22 May 2018 03:41:26 +0000 (20:41 -0700)]
[XLA:GPU] Implement trivial (one-replica) cross-replica-sum on XLA:GPU.

Also fix the CPU implementation to work in the case when there are
multiple operands to the cross-replica-sum op.

PiperOrigin-RevId: 197506311

6 years agoUpdate scan benchmarks to have a range of 16K-128K iterations. As of https://github...
A. Unique TensorFlower [Tue, 22 May 2018 03:27:53 +0000 (20:27 -0700)]
Update scan benchmarks to have a range of 16K-128K iterations. As of https://github.com/tensorflow/tensorflow/commit/5802096c267c805f6a69798aac10aefef759bb9f, TensorFlow Eager no longer exhibits quadratic behavior. The benchmark is still ~5x slower in eager mode vs. graph mode, and maybe slightly worse than linear:

n     Graph Time (s)  Eager Time (s)      Ratio
-----------------------------------------------
 16K            0.35             1.8        5.1
 32K            0.64             3.6        5.6
 64K            1.1              7.2        6.5
128K            2.4             14.8        6.2

PiperOrigin-RevId: 197505257

6 years agoInternal Change
Michael Kuperstein [Tue, 22 May 2018 03:06:39 +0000 (20:06 -0700)]
Internal Change

PiperOrigin-RevId: 197503560

6 years agoInternal Change
Michael Case [Tue, 22 May 2018 02:45:21 +0000 (19:45 -0700)]
Internal Change

PiperOrigin-RevId: 197501805

6 years agos/tfe.GradientTape/tf.GradientTape/
Asim Shankar [Tue, 22 May 2018 02:30:52 +0000 (19:30 -0700)]
s/tfe.GradientTape/tf.GradientTape/
s/tfe.enable_eager_execution/tf.enable_eager_execution/

PiperOrigin-RevId: 197500751

6 years agoImprovements to util/nest.py and data/util/nest.py
Akshay Modi [Tue, 22 May 2018 01:53:54 +0000 (18:53 -0700)]
Improvements to util/nest.py and data/util/nest.py

Changes:
- Add a cache for type -> is_sequence to speed up Flatten/IsSequence
- Update data/util/nest.py flatten to use C Flatten

Before:
entry {
  name: "EagerLinearRegressionBenchmark.eager_train_cpu"
  iters: 2000
  wall_time: 1.91852378845
  extras {
    key: "examples_per_sec"
    value {
      double_value: 66717.9634521
    }
  }
}

After:
entry {
  name: "EagerLinearRegressionBenchmark.eager_train_cpu"
  iters: 2000
  wall_time: 1.74479198456
  extras {
    key: "examples_per_sec"
    value {
      double_value: 73361.1806638
    }
  }
}
PiperOrigin-RevId: 197497854

6 years agoAdds support for specifying a discovery_service_url (via either a parameter or an...
Frank Chen [Tue, 22 May 2018 01:14:30 +0000 (18:14 -0700)]
Adds support for specifying a discovery_service_url (via either a parameter or an environment variable) within TPUClusterResolver

PiperOrigin-RevId: 197494335

6 years agoSplit generated_examples test into multiple test targets
Austin Anderson [Tue, 22 May 2018 00:45:22 +0000 (17:45 -0700)]
Split generated_examples test into multiple test targets

PiperOrigin-RevId: 197490872

6 years agoIntroduce an option to allocate CUDA unified memory
Smit Hinsu [Tue, 22 May 2018 00:42:15 +0000 (17:42 -0700)]
Introduce an option to allocate CUDA unified memory

PiperOrigin-RevId: 197490523

6 years ago[XLA] Two minor style-guide fixups.
Justin Lebar [Tue, 22 May 2018 00:34:56 +0000 (17:34 -0700)]
[XLA] Two minor style-guide fixups.

- Fix TODO(b/123) style.
- Use a value type rather than an rvalue reference for a "sink" param.

PiperOrigin-RevId: 197489597

6 years agoMake the quantize_and_dequantize op use the full quantized range when possible.
A. Unique TensorFlower [Tue, 22 May 2018 00:18:06 +0000 (17:18 -0700)]
Make the quantize_and_dequantize op use the full quantized range when possible.

PiperOrigin-RevId: 197487461

6 years agoImproves documentation of labels and logits arguments in hinge loss methods .
Petros Mol [Tue, 22 May 2018 00:15:39 +0000 (17:15 -0700)]
Improves documentation of labels and logits arguments in hinge loss methods .

PiperOrigin-RevId: 197487120

6 years agoSupports initializing an Interpreter with a direct ByteBuffer of nativeOrder()
A. Unique TensorFlower [Tue, 22 May 2018 00:03:40 +0000 (17:03 -0700)]
Supports initializing an Interpreter with a direct ByteBuffer of nativeOrder()
that contains bytes content of a valid tflite model.

PiperOrigin-RevId: 197485253

6 years agoUpdate docstring for tf.round as it support all real types.
Yong Tang [Mon, 21 May 2018 23:57:17 +0000 (23:57 +0000)]
Update docstring for tf.round as it support all real types.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoUpdate docstring as pow supports `float16` now
Yong Tang [Mon, 21 May 2018 23:36:55 +0000 (23:36 +0000)]
Update docstring as pow supports `float16` now

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoFix discrepancies between doc and implementation for math_ops
Yong Tang [Mon, 21 May 2018 23:29:32 +0000 (23:29 +0000)]
Fix discrepancies between doc and implementation for math_ops

In the docstring of math_ops, there are some discrepancies
between the supported data types and the actual implementation:
`abs` supports `float16`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoEnsure that saving/restoring iterator in CheckpointInputPipelineHook is performed...
Saurabh Saxena [Mon, 21 May 2018 23:43:53 +0000 (16:43 -0700)]
Ensure that saving/restoring iterator in CheckpointInputPipelineHook is performed *after* the _DatasetInitializerHook has been run.
In the TPUEstimator the _DatasetInitializerHook is present in the
EstimatorSpec.training_hooks. Since these are executed after the `hooks`
passed to Estimator.train the input pipeline checkpointing hook fails
since it finds an uninitialized iterator.

PiperOrigin-RevId: 197482609

6 years agoFixes issue with gradient tape when asking for the gradient of an intermediate tensor.
Alexandre Passos [Mon, 21 May 2018 23:37:17 +0000 (16:37 -0700)]
Fixes issue with gradient tape when asking for the gradient of an intermediate tensor.

PiperOrigin-RevId: 197481473

6 years agoImprove error message in tensor.cc when IsAligned() test fails
A. Unique TensorFlower [Mon, 21 May 2018 23:30:42 +0000 (16:30 -0700)]
Improve error message in tensor.cc when IsAligned() test fails
by logging offending ptr value.

PiperOrigin-RevId: 197480534

6 years agoSupport a better interface for the single option case in combinations.py.
Igor Saprykin [Mon, 21 May 2018 23:26:11 +0000 (16:26 -0700)]
Support a better interface for the single option case in combinations.py.

If there's only one combination for combination-based tests, it doesn't have to
be a list.

PiperOrigin-RevId: 197479773

6 years agoAdd arithmetic optimizer stage that removes LogicalNot that takes a comparison as...
A. Unique TensorFlower [Mon, 21 May 2018 23:14:10 +0000 (16:14 -0700)]
Add arithmetic optimizer stage that removes LogicalNot that takes a comparison as input, i.e.

!(a == b)  =>  a != b
!(a != b)  =>  a == b
!(a < b)   =>  a >= b
!(a <= b)  =>  a > b
!(a > b)   =>  a <= b
!(a >= b)  =>  a < b

PiperOrigin-RevId: 197477959

6 years agoExpose partition_strategy option in embedding_lookup_unique
A. Unique TensorFlower [Mon, 21 May 2018 23:13:28 +0000 (16:13 -0700)]
Expose partition_strategy option in embedding_lookup_unique

PiperOrigin-RevId: 197477853

6 years agoOptimize more reductions
Benoit Steiner [Mon, 21 May 2018 23:02:33 +0000 (16:02 -0700)]
Optimize more reductions

PiperOrigin-RevId: 197476067

6 years agoInternal Change.
Michael Case [Mon, 21 May 2018 22:55:46 +0000 (15:55 -0700)]
Internal Change.

PiperOrigin-RevId: 197475076

6 years agoExtract out a MatrixMatrixBlockPanelEmitter::Dimensions struct; NFC
Sanjoy Das [Mon, 21 May 2018 22:49:14 +0000 (15:49 -0700)]
Extract out a MatrixMatrixBlockPanelEmitter::Dimensions struct; NFC

This gives me a convenient place to note that the m/k/n here are not the m/k/n
for the entire GEMM.  I didn't rename m/k/n to mc/kc/nr since the latter seems
somewhat redundant to me -- we could read 'c as 'column' and 'r' as 'row', but
that's the only possibility?

This refactoring will also be useful when implementing GEPP on top of GEBP.

PiperOrigin-RevId: 197474137

6 years agoMerge pull request #19254 from yongtang/05122018-compute_accidental_hits
Michael Case [Mon, 21 May 2018 22:48:11 +0000 (15:48 -0700)]
Merge pull request #19254 from yongtang/05122018-compute_accidental_hits

Add additional shape validation to `compute_accidental_hits`

6 years agoRemove object-based checkpointing probes from Python 3 tf.train.Saver "name not found...
Allen Lavoie [Mon, 21 May 2018 22:43:20 +0000 (15:43 -0700)]
Remove object-based checkpointing probes from Python 3 tf.train.Saver "name not found" stack traces

PiperOrigin-RevId: 197473101

6 years agoDisable flaky batch_dataset_op_test
Jiri Simsa [Mon, 21 May 2018 22:32:45 +0000 (15:32 -0700)]
Disable flaky batch_dataset_op_test

PiperOrigin-RevId: 197471172

6 years agoAllow using DNN to only train the embeddings and using the tree model for the final...
A. Unique TensorFlower [Mon, 21 May 2018 21:47:37 +0000 (14:47 -0700)]
Allow using DNN to only train the embeddings and using the tree model for the final prediction.

PiperOrigin-RevId: 197462585

6 years agoMerge pull request #19257 from yongtang/05122018-QuantizedReluX
Michael Case [Mon, 21 May 2018 21:38:18 +0000 (14:38 -0700)]
Merge pull request #19257 from yongtang/05122018-QuantizedReluX

Shape validation of `max_features` in `QuantizedReluX`

6 years ago[TF:XLA] Delete cumulative_total_size to simplify the DFS scheduler.
Dimitris Vardoulakis [Mon, 21 May 2018 21:25:04 +0000 (14:25 -0700)]
[TF:XLA] Delete cumulative_total_size to simplify the DFS scheduler.
It's unclear why we would assign cumulative_total_size as the total size of a single HLO, and deleting it doesn't make a difference in practice.

PiperOrigin-RevId: 197458260

6 years agoAlways enter the handle graph before calling convert_to_tensor in resource variables.
Alexandre Passos [Mon, 21 May 2018 20:00:20 +0000 (13:00 -0700)]
Always enter the handle graph before calling convert_to_tensor in resource variables.

This mimics the behavior of ref variable's assign which converts to tensor in the
right graph inside op_def_lib.apply_op.

PiperOrigin-RevId: 197441989

6 years agoTurn on dead branch elimination, shape optimization, and remapping by default
Benoit Steiner [Mon, 21 May 2018 19:43:52 +0000 (12:43 -0700)]
Turn on dead branch elimination, shape optimization, and remapping by default

PiperOrigin-RevId: 197439191

6 years agoMerge pull request #19326 from yongtang/05162018-mpi_utils.h
Xiaoqiang Zheng [Mon, 21 May 2018 19:40:59 +0000 (12:40 -0700)]
Merge pull request #19326 from yongtang/05162018-mpi_utils.h

Remove redundant header includes in mpi_utils.h

6 years agoOptimize multiplications by constants in more cases.
Benoit Steiner [Mon, 21 May 2018 18:12:55 +0000 (11:12 -0700)]
Optimize multiplications by constants in more cases.

PiperOrigin-RevId: 197422256

6 years agoAdd a kernel usable as a GEBP inner loop for an LLVM IR GEMM
Sanjoy Das [Mon, 21 May 2018 18:11:48 +0000 (11:11 -0700)]
Add a kernel usable as a GEBP inner loop for an LLVM IR GEMM

This is not used in any real code path, but I've added an escape hatch that runs
regular matrix multiplies through this kernel for testing purposes.

As far as I can tell this is functionally correct, but I don't yet have a proper
apples-to-apples performance comparison -- that'll have to wait till the
implementation is complete.

PiperOrigin-RevId: 197422075

6 years agoAutomated g4 rollback of changelist 197226707
A. Unique TensorFlower [Mon, 21 May 2018 17:34:42 +0000 (10:34 -0700)]
Automated g4 rollback of changelist 197226707

PiperOrigin-RevId: 197415745

6 years agoMerge pull request #19258 from Androbin/patch-2
Michael Case [Mon, 21 May 2018 17:30:43 +0000 (10:30 -0700)]
Merge pull request #19258 from Androbin/patch-2

Update TFLite Docs on tf.gather

6 years agoMerge pull request #19394 from miaout17/fix-demop
Michael Case [Mon, 21 May 2018 17:27:14 +0000 (10:27 -0700)]
Merge pull request #19394 from miaout17/fix-demop

Fix the TFLite iOS demo apps.

6 years agoMerge pull request #19396 from yongtang/19338-clip
Michael Case [Mon, 21 May 2018 17:26:42 +0000 (10:26 -0700)]
Merge pull request #19396 from yongtang/19338-clip

Add test case for empty tensor with clip ops

6 years agoMerge pull request #19432 from soonson/patch-1
Michael Case [Mon, 21 May 2018 17:10:03 +0000 (10:10 -0700)]
Merge pull request #19432 from soonson/patch-1

Update groups.md

6 years agoDOC: Fix python code in for invalid code (#19218)
Abdullah Alrasheed [Mon, 21 May 2018 16:08:27 +0000 (00:08 +0800)]
DOC: Fix python code in for invalid code (#19218)

There is an error in python code in the documentation. There is no class called `tf.estimator.Estimator.LinearClassifier` I think it was a typo and the author meant `tf.estimator.LinearClassifier`.

6 years agoEnhance error reporting.
A. Unique TensorFlower [Mon, 21 May 2018 14:00:53 +0000 (07:00 -0700)]
Enhance error reporting.

PiperOrigin-RevId: 197390052

6 years agoUpdate groups.md
soonson [Mon, 21 May 2018 11:14:54 +0000 (20:14 +0900)]
Update groups.md

Add more user groups collected

6 years agoExtend optimization of Slice operator to StridedSlice.
A. Unique TensorFlower [Mon, 21 May 2018 10:52:25 +0000 (03:52 -0700)]
Extend optimization of Slice operator to StridedSlice.

PiperOrigin-RevId: 197376217

6 years agoMerge pull request #19357 from yongtang/03122018-_any_variable_initialized
Xiaoqiang Zheng [Mon, 21 May 2018 07:24:14 +0000 (00:24 -0700)]
Merge pull request #19357 from yongtang/03122018-_any_variable_initialized

Fix the naming of _any_variable_initialized

6 years agoMerge pull request #19273 from ageron/fix_estimator_doc
Xiaoqiang Zheng [Mon, 21 May 2018 06:45:37 +0000 (23:45 -0700)]
Merge pull request #19273 from ageron/fix_estimator_doc

Fix errors and typos in the Estimators programmer's guide

6 years agoStreamingFilesDataset fixes (#19413)
Nand Dalal [Mon, 21 May 2018 03:15:21 +0000 (22:15 -0500)]
StreamingFilesDataset fixes (#19413)

* use source_dataset.output_dtypes to yield correctly typed output dataset

* add test and fix issue introduced by 2a6c5998a239f41926ca295ac20bb595862fd5ff

6 years ago[XLA] Fix memory leak in ScopedShapedBuffer's move-assignment operator.
Justin Lebar [Sun, 20 May 2018 21:50:49 +0000 (14:50 -0700)]
[XLA] Fix memory leak in ScopedShapedBuffer's move-assignment operator.

PiperOrigin-RevId: 197331197

6 years agoFixed Pi cross compilation
Pete Warden [Sun, 20 May 2018 21:45:10 +0000 (14:45 -0700)]
Fixed Pi cross compilation

PiperOrigin-RevId: 197331034

6 years agoRollforward of CL 197167501, without enabling CUDNN_FFT_TILING_FORWARD because that...
A. Unique TensorFlower [Sun, 20 May 2018 20:14:55 +0000 (13:14 -0700)]
Rollforward of CL 197167501, without enabling CUDNN_FFT_TILING_FORWARD because that breaks XLA tests.

PiperOrigin-RevId: 197328103

6 years agoFix typo (#19411)
ManHyuk [Sun, 20 May 2018 14:48:05 +0000 (23:48 +0900)]
Fix typo (#19411)

6 years agoMerge pull request #18685 from nuchi/fft_no_core_framework_and_single_thread
Martin Wicke [Sun, 20 May 2018 00:09:51 +0000 (17:09 -0700)]
Merge pull request #18685 from nuchi/fft_no_core_framework_and_single_thread

XLA CPU Fft no core framework and single thread

6 years agocomment typo (#19381)
Qing ZHao [Sat, 19 May 2018 14:45:29 +0000 (22:45 +0800)]
comment typo (#19381)

6 years ago[XLA] Consistently apply gpu-max-kernel-unroll-factor = 1 in HloTestBase.
Justin Lebar [Sat, 19 May 2018 07:37:18 +0000 (00:37 -0700)]
[XLA] Consistently apply gpu-max-kernel-unroll-factor = 1 in HloTestBase.

Previously we set it in CreateNewModule but not in
GetDebugOptionsFromFlags(), which seems wrong.

PiperOrigin-RevId: 197247863

6 years agoFix compile error due to missing default case in switch statement.
A. Unique TensorFlower [Sat, 19 May 2018 04:44:09 +0000 (21:44 -0700)]
Fix compile error due to missing default case in switch statement.

PiperOrigin-RevId: 197240781

6 years agoMerge pull request #19409 from zheng-xq/branch_197218170
Gunhan Gulsoy [Sat, 19 May 2018 03:30:46 +0000 (20:30 -0700)]
Merge pull request #19409 from zheng-xq/branch_197218170

Branch 197218170

6 years agoAdd a method to list op names in an ApiDefMap.
A. Unique TensorFlower [Sat, 19 May 2018 02:25:41 +0000 (19:25 -0700)]
Add a method to list op names in an ApiDefMap.

PiperOrigin-RevId: 197234301

6 years agoMerge pull request #19408 from annarev/add_more_missing_deps
annarev [Sat, 19 May 2018 02:10:04 +0000 (19:10 -0700)]
Merge pull request #19408 from annarev/add_more_missing_deps

Add missing dependencies to test_lite_main

6 years agoAdd 'src_graph' argument to gradients_impl._GradientsHelper.
Skye Wanderman-Milne [Sat, 19 May 2018 01:29:54 +0000 (18:29 -0700)]
Add 'src_graph' argument to gradients_impl._GradientsHelper.

This allows the gradient graph to be built in a _FuncGraph separate
from the forward graph (a _FuncGraph is necessary to capture needed
tensors from the forward graph. It's up to the capturing logic what
how to feed the forward tensors to the gradient graph).

PiperOrigin-RevId: 197230736

6 years agoDelete unused and buggy code.
A. Unique TensorFlower [Sat, 19 May 2018 01:18:21 +0000 (18:18 -0700)]
Delete unused and buggy code.

(Note the mistaken argument order of the string constructors.)

PiperOrigin-RevId: 197229855

6 years ago[XLA] Regression test for missing virtual destructor.
Chris Leary [Sat, 19 May 2018 00:49:42 +0000 (17:49 -0700)]
[XLA] Regression test for missing virtual destructor.

PiperOrigin-RevId: 197227263

6 years agoMake the quantize_and_dequantize op use the full quantized range when possible.
A. Unique TensorFlower [Sat, 19 May 2018 00:43:46 +0000 (17:43 -0700)]
Make the quantize_and_dequantize op use the full quantized range when possible.

PiperOrigin-RevId: 197226707

6 years agoMerge commit for internal changes
zhengxq [Sat, 19 May 2018 00:05:40 +0000 (17:05 -0700)]
Merge commit for internal changes

6 years agoMerge pull request #19338 from girving/clip
Xiaoqiang Zheng [Fri, 18 May 2018 23:37:27 +0000 (16:37 -0700)]
Merge pull request #19338 from girving/clip

Make tf.clip_by_value not crash on empty tensors

6 years agoAutomated g4 rollback of changelist 197070234
Igor Saprykin [Fri, 18 May 2018 23:33:19 +0000 (16:33 -0700)]
Automated g4 rollback of changelist 197070234

PiperOrigin-RevId: 197218170

6 years agoImprove import error messages.
A. Unique TensorFlower [Fri, 18 May 2018 23:28:59 +0000 (16:28 -0700)]
Improve import error messages.

PiperOrigin-RevId: 197217638

6 years agoAdd missing dependencies to test_lite_main
Anna R [Fri, 18 May 2018 23:11:30 +0000 (16:11 -0700)]
Add missing dependencies to test_lite_main

6 years agoSkip tests that require unavailable hardware when not using DistributionStrategy
Igor Saprykin [Fri, 18 May 2018 22:49:01 +0000 (15:49 -0700)]
Skip tests that require unavailable hardware when not using DistributionStrategy

Right now combinations.py skips tests that do not have the hardware that's
requried by the DistributionStrategy instance that is used in that test.  After
this change, the user can trigger such a behavior even when they are not using
DistributionStrategy.

Two new special arguments are added: "required_tpu" and "required_gpus".

PiperOrigin-RevId: 197212466

6 years agoMerge pull request #19404 from yifeif/distributed
Yifei Feng [Fri, 18 May 2018 22:43:30 +0000 (15:43 -0700)]
Merge pull request #19404 from yifeif/distributed

Make distributed_test use tf-nightly by default.

6 years agoCorrect dtype in resource_strided_slice_assign
Alexandre Passos [Fri, 18 May 2018 22:33:00 +0000 (15:33 -0700)]
Correct dtype in resource_strided_slice_assign

PiperOrigin-RevId: 197210273

6 years agoRemove unused BUILD dependencies
A. Unique TensorFlower [Fri, 18 May 2018 22:15:06 +0000 (15:15 -0700)]
Remove unused BUILD dependencies

PiperOrigin-RevId: 197207799

6 years agoFixed an issue when add context into params.
Jianwei Xie [Fri, 18 May 2018 21:59:01 +0000 (14:59 -0700)]
Fixed an issue when add context into params.

PiperOrigin-RevId: 197205327

6 years agoMake distributed_test use tf-nightly by default.
Yifei Feng [Fri, 18 May 2018 21:25:59 +0000 (14:25 -0700)]
Make distributed_test use tf-nightly by default.

6 years agoAdding back abi and stacktrace dependencies to stacktrace_handler (#19401)
annarev [Fri, 18 May 2018 21:12:26 +0000 (14:12 -0700)]
Adding back abi and stacktrace dependencies to stacktrace_handler (#19401)

6 years agoRevert a change to fix TFLite iOS demo app.
Yu-Cheng Ling [Fri, 18 May 2018 20:12:41 +0000 (13:12 -0700)]
Revert a change to fix TFLite iOS demo app.
It depends on released CocoaPod.

PiperOrigin-RevId: 197189734

6 years agoThe quantizer should match the patterns for partition variables.
Suharsh Sivakumar [Fri, 18 May 2018 20:07:18 +0000 (13:07 -0700)]
The quantizer should match the patterns for partition variables.

PiperOrigin-RevId: 197189118

6 years ago[dataset]: Remove extra `repeat` in the docstring for `shard`.
A. Unique TensorFlower [Fri, 18 May 2018 19:41:20 +0000 (12:41 -0700)]
[dataset]: Remove extra `repeat` in the docstring for `shard`.

PiperOrigin-RevId: 197185877

6 years ago[TF:XLA] Delete the reverseDFS scheduler. With recent improvements to the List schedu...
Dimitris Vardoulakis [Fri, 18 May 2018 19:24:20 +0000 (12:24 -0700)]
[TF:XLA] Delete the reverseDFS scheduler. With recent improvements to the List scheduler, reverseDFS is no longer needed.

PiperOrigin-RevId: 197183727