platform/upstream/tensorflow.git
6 years agoWe no longer need updates_collections in quant ops since we rely on the data dependen...
Suharsh Sivakumar [Sat, 7 Apr 2018 00:51:40 +0000 (17:51 -0700)]
We no longer need updates_collections in quant ops since we rely on the data dependency from Assign ops.

PiperOrigin-RevId: 191965466

6 years ago[XLA] Redesign: implement Collapse and migrate reshape_test.
A. Unique TensorFlower [Sat, 7 Apr 2018 00:49:47 +0000 (17:49 -0700)]
[XLA] Redesign: implement Collapse and migrate reshape_test.

PiperOrigin-RevId: 191965245

6 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Sat, 7 Apr 2018 00:46:39 +0000 (17:46 -0700)]
Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 191964971

6 years agoAdd remote session support for the MakeCallable API.
Derek Murray [Sat, 7 Apr 2018 00:39:17 +0000 (17:39 -0700)]
Add remote session support for the MakeCallable API.

PiperOrigin-RevId: 191964391

6 years agoInitial Python API for specifying outside_compilation blocks that call out from a...
A. Unique TensorFlower [Sat, 7 Apr 2018 00:31:43 +0000 (17:31 -0700)]
Initial Python API for specifying outside_compilation blocks that call out from a TPU computation.

For now outside_compilation cannot occur inside any compiled control flow (while loop or conditional). If the computation is replicated, the outside_compilation ops are also replicated. Both of these restrictions will be lifted in followup CLs.

PiperOrigin-RevId: 191963758

6 years agoReplaced calls to deprecated tensorflow::StringPiece methods with their
A. Unique TensorFlower [Sat, 7 Apr 2018 00:19:45 +0000 (17:19 -0700)]
Replaced calls to deprecated tensorflow::StringPiece methods with their
tensorflow::str_util equivalents.

This will allow the deprecated methods to be removed.

PiperOrigin-RevId: 191962763

6 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Sat, 7 Apr 2018 00:18:33 +0000 (17:18 -0700)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 191962652

6 years agoOpen sourcing proto/rpc ops.
Jiri Simsa [Sat, 7 Apr 2018 00:17:22 +0000 (17:17 -0700)]
Open sourcing proto/rpc ops.

PiperOrigin-RevId: 191962572

6 years agoRemove zipped argument, and use an implicit dispatch mechanism
A. Unique TensorFlower [Sat, 7 Apr 2018 00:13:13 +0000 (17:13 -0700)]
Remove zipped argument, and use an implicit dispatch mechanism

PiperOrigin-RevId: 191962157

6 years agoAdd CallableOptions.tensor_connection for feeding a tensor to another tensor.
Derek Murray [Sat, 7 Apr 2018 00:02:16 +0000 (17:02 -0700)]
Add CallableOptions.tensor_connection for feeding a tensor to another tensor.

PiperOrigin-RevId: 191960845

6 years agoAdd methods to TestReporter to log extras for benchmarks.
Shashi Shekhar [Fri, 6 Apr 2018 23:58:18 +0000 (16:58 -0700)]
Add methods to TestReporter to log extras for benchmarks.

PiperOrigin-RevId: 191960433

6 years agoUpdate docs to include the most relevant paper.
Suharsh Sivakumar [Fri, 6 Apr 2018 23:51:05 +0000 (16:51 -0700)]
Update docs to include the most relevant paper.

PiperOrigin-RevId: 191959657

6 years agoWater down some tests so they work in the Python 2.7.9 release builds
Allen Lavoie [Fri, 6 Apr 2018 23:50:01 +0000 (16:50 -0700)]
Water down some tests so they work in the Python 2.7.9 release builds

Removing reference cycle checks from the tests that failed in
http://ci.tensorflow.org/view/Release/job/release-debian-cpu/99/consoleFull

uuid4() created reference cycles until Python 2.7.11. Removes checks for
reference cycles from tests which indirectly call it.

This issue will probably keep coming up until we move off of 2.7.9 (since
there's no presubmit), but this CL is an effort to fix the issues that came up
for the 1.7 release.

PiperOrigin-RevId: 191959519

6 years ago[XLA] Redesign: implement and test Pad.
A. Unique TensorFlower [Fri, 6 Apr 2018 23:34:46 +0000 (16:34 -0700)]
[XLA] Redesign: implement and test Pad.

PiperOrigin-RevId: 191957827

6 years agoMove inplace update operators.
Patrick Nguyen [Fri, 6 Apr 2018 23:33:11 +0000 (16:33 -0700)]
Move inplace update operators.

The ops are not part of the public API.

PiperOrigin-RevId: 191957660

6 years agoRevert to the previous version of the ResNet50 model.
Anjali Sridhar [Fri, 6 Apr 2018 23:11:10 +0000 (16:11 -0700)]
Revert to the previous version of the ResNet50 model.

PiperOrigin-RevId: 191955019

6 years agoAdd support for ResourceVariable to recompute_grad
A. Unique TensorFlower [Fri, 6 Apr 2018 23:09:37 +0000 (16:09 -0700)]
Add support for ResourceVariable to recompute_grad

PiperOrigin-RevId: 191954813

6 years ago[TF] Add half precision to the supported data types for tensorflow operations.
Bixia Zheng [Fri, 6 Apr 2018 23:04:46 +0000 (16:04 -0700)]
[TF] Add half precision to the supported data types for tensorflow operations.

Enable most of the half precision XLA compiler tests for the cpu backend,
except for two which are disabled and documented in a bug.

PiperOrigin-RevId: 191954183

6 years agoRefactor LoopOptimizer:
A. Unique TensorFlower [Fri, 6 Apr 2018 23:00:41 +0000 (16:00 -0700)]
Refactor LoopOptimizer:
  * Put loop-invariant node motion in its own class.
  * Add granular control of which passes to run.
Swap order of LINM and stack push removal.

PiperOrigin-RevId: 191953537

6 years agoFollow up on earlier change, which tried to avoid reading the input file twice for...
A. Unique TensorFlower [Fri, 6 Apr 2018 22:51:49 +0000 (15:51 -0700)]
Follow up on earlier change, which tried to avoid reading the input file twice for InitializableLookupTable in combination with HashTable.

It turns out all files end at some point and thus and OutOfRange status is encountered on all successful reads. The old code would then compare next_id_ to total_size(), to see whether or not we should return an error. But this is exactly what we tried to prevent. Instead use vocab_size_ if it was initialized or don't return an error.

PiperOrigin-RevId: 191952441

6 years ago[tf.data] Replace the Reader-oriented documentation for supporting new datasets with...
Derek Murray [Fri, 6 Apr 2018 22:38:05 +0000 (15:38 -0700)]
[tf.data] Replace the Reader-oriented documentation for supporting new datasets with a tf.data version.

PiperOrigin-RevId: 191950831

6 years agoCreate tuple if body doesn't return one.
Akshay Modi [Fri, 6 Apr 2018 22:06:05 +0000 (15:06 -0700)]
Create tuple if body doesn't return one.

Fixes #18257.

PiperOrigin-RevId: 191946459

6 years agoAdd RNNClassifier
A. Unique TensorFlower [Fri, 6 Apr 2018 21:32:28 +0000 (14:32 -0700)]
Add RNNClassifier

PiperOrigin-RevId: 191941174

6 years agoPad support for quantized zero.
Suharsh Sivakumar [Fri, 6 Apr 2018 21:13:49 +0000 (14:13 -0700)]
Pad support for quantized zero.

PiperOrigin-RevId: 191938267

6 years agoSwitch the eager PTB example to object-based saving.
Allen Lavoie [Fri, 6 Apr 2018 20:58:40 +0000 (13:58 -0700)]
Switch the eager PTB example to object-based saving.

Should be the last eager example using name-based saving. This works now that cuDNN LSTM cells are Checkpointable.

The CPU and GPU checkpoints for this example (still) won't be compatible; I may follow up with a CL which makes them equivalent. Right now I don't think they're even implementing the same architecture.

PiperOrigin-RevId: 191935995

6 years agoA single measurement is enough when using simulation
Benoit Steiner [Fri, 6 Apr 2018 20:49:42 +0000 (13:49 -0700)]
A single measurement is enough when using simulation

PiperOrigin-RevId: 191934781

6 years agoReplaced calls to deprecated tensorflow::StringPiece methods with their
A. Unique TensorFlower [Fri, 6 Apr 2018 19:37:17 +0000 (12:37 -0700)]
Replaced calls to deprecated tensorflow::StringPiece methods with their
tensorflow::str_util equivalents.

This will allow the deprecated methods to be removed.

PiperOrigin-RevId: 191925087

6 years agoPull changes from prefetching_ops to support dicts in prefetching_ops_v2 in distribut...
Priya Gupta [Fri, 6 Apr 2018 19:36:20 +0000 (12:36 -0700)]
Pull changes from prefetching_ops to support dicts in prefetching_ops_v2 in distribute, and update estimator test to use prefetching.
Also update readme to reflect the support of dictionaries.

PiperOrigin-RevId: 191924990

6 years agoUpdate the rewriter options with the optimizer options
Benoit Steiner [Fri, 6 Apr 2018 19:22:17 +0000 (12:22 -0700)]
Update the rewriter options with the optimizer options

PiperOrigin-RevId: 191923287

6 years agoFix a few bugs in ArithmeticOptimizer and make it robust to failures of shape inference.
A. Unique TensorFlower [Fri, 6 Apr 2018 19:18:04 +0000 (12:18 -0700)]
Fix a few bugs in ArithmeticOptimizer and make it robust to failures of shape inference.

PiperOrigin-RevId: 191922788

6 years agoValidate errorReporter and improve the documentation on it.
Andrew Selle [Fri, 6 Apr 2018 18:59:17 +0000 (11:59 -0700)]
Validate errorReporter and improve the documentation on it.

PiperOrigin-RevId: 191920009

6 years agoSupport RNN profiling in StreamExecutor for CUDA GPUs.
James Qin [Fri, 6 Apr 2018 18:56:08 +0000 (11:56 -0700)]
Support RNN profiling in StreamExecutor for CUDA GPUs.

This change hasn't applied autotune on TF Cudnn kernels, only provides lower level support.

PiperOrigin-RevId: 191919566

6 years agoFix small performance regression in microbenchmarks.
Alexandre Passos [Fri, 6 Apr 2018 18:55:19 +0000 (11:55 -0700)]
Fix small performance regression in microbenchmarks.

PiperOrigin-RevId: 191919464

6 years agoRemove `TF_InitializeTPU` and `TF_ShutdownTPU` from experimental C API as they are...
Richard Wei [Fri, 6 Apr 2018 18:47:44 +0000 (11:47 -0700)]
Remove `TF_InitializeTPU` and `TF_ShutdownTPU` from experimental C API as they are no longer needed. Also remove a duplicate function declaration.

PiperOrigin-RevId: 191918408

6 years agoUpdate tf.keras to keras 2.1.5 version.
Anjali Sridhar [Fri, 6 Apr 2018 18:24:20 +0000 (11:24 -0700)]
Update tf.keras to keras 2.1.5 version.

PiperOrigin-RevId: 191914904

6 years ago[TF:XLA] Create Despecializing Pass Pipeline
Nick Desaulniers [Fri, 6 Apr 2018 18:23:40 +0000 (11:23 -0700)]
[TF:XLA] Create Despecializing Pass Pipeline

When comparing backends, it is useful to take an HLO optimized for one backend and perform transformations in order to match numerics.  This can be thought of as finding a lowest common denominator.

Move this grouping of passes into its own HloPassPipeline that can be reused in a few different places.

PiperOrigin-RevId: 191914799

6 years agoAdded headers only version of tensorflow/core/kernels:cwise_lib, cwise_lib_hdrs....
A. Unique TensorFlower [Fri, 6 Apr 2018 18:21:41 +0000 (11:21 -0700)]
Added headers only version of tensorflow/core/kernels:cwise_lib, cwise_lib_hdrs. This is for clients that want to use the cwise_ops machinery when making their own custom ops, including cwise_lib directly causes multiple definition linker errors.

PiperOrigin-RevId: 191914445

6 years agoMinor doc clarification for reduce_sum return type
A. Unique TensorFlower [Fri, 6 Apr 2018 18:21:24 +0000 (11:21 -0700)]
Minor doc clarification for reduce_sum return type

PiperOrigin-RevId: 191914398

6 years agoProperly handle callable objects.
A. Unique TensorFlower [Fri, 6 Apr 2018 18:17:41 +0000 (11:17 -0700)]
Properly handle callable objects.

PiperOrigin-RevId: 191913834

6 years agoTPU Cost Estimator has been modified to also account for the memory cost in the execu...
A. Unique TensorFlower [Fri, 6 Apr 2018 18:16:17 +0000 (11:16 -0700)]
TPU Cost Estimator has been modified to also account for the memory cost in the execution time. Until more sophisticated methods are added, we resort to the roofline model to calculate such cost.

PiperOrigin-RevId: 191913626

6 years agoChange GetInstructionCallContext to take an opcode instead of an
Mark Heffernan [Fri, 6 Apr 2018 17:28:18 +0000 (10:28 -0700)]
Change GetInstructionCallContext to take an opcode instead of an
HloInstruction.
This enables use of the function without an actual instruction (eg, if you just
have an HloProto).

PiperOrigin-RevId: 191905914

6 years agoAllow TFE_NewContext to fail more reasonably when SWIG is checking status.
Akshay Modi [Fri, 6 Apr 2018 17:28:10 +0000 (10:28 -0700)]
Allow TFE_NewContext to fail more reasonably when SWIG is checking status.

Before:
TFE_Context would check nullptr, and the function would fail straight away.

Now:
TFE_Context is nullptr, so it skips down to checking the status, and an error
is raised.

I'm not able to find in SWIG documentation how to order typemaps in the
generated code - ideally, I'd order it to check the status typemap first. This
code makes it not dependent on this ordering either way.

PiperOrigin-RevId: 191905893

6 years agoObject-based checkpointing support for unidirectional cuDNN LSTM cells
Allen Lavoie [Fri, 6 Apr 2018 17:26:40 +0000 (10:26 -0700)]
Object-based checkpointing support for unidirectional cuDNN LSTM cells

Once checked in, this will be the only way I know of to save canonical weights
when executing eagerly. Eager's name-based saving support will only do the
opaque parameter buffer.

I'm not going to try converting everything in one go, but it's a start at
least. And everything else should raise a NotImplementedError rather than
silently not saving correctly.

Single-layer cuDNN cells can be swapped for un-wrapped cuDNN compatible cells or
single cells wrapped in MultiRNNCells. Multi-layer cells need MultiRNNCell
wrapping.

PiperOrigin-RevId: 191905703

6 years agoMaterialize tensor array sizes whenever possible
Benoit Steiner [Fri, 6 Apr 2018 16:45:01 +0000 (09:45 -0700)]
Materialize tensor array sizes whenever possible

PiperOrigin-RevId: 191900015

6 years ago[tf.data] Enable using `tf.contrib.data.prefetch_to_device()` in eager mode.
Derek Murray [Fri, 6 Apr 2018 16:26:26 +0000 (09:26 -0700)]
[tf.data] Enable using `tf.contrib.data.prefetch_to_device()` in eager mode.

The added functionality is a substitute for the implicit prefetching in
`tfe.Iterator`, and the two paths will converge in a future change.

Fixes #18260.

PiperOrigin-RevId: 191897666

6 years ago[TPUClusterResolver] Start a TFServer when running in GKE
Brennan Saeta [Fri, 6 Apr 2018 16:26:08 +0000 (09:26 -0700)]
[TPUClusterResolver] Start a TFServer when running in GKE

This change allows advanced input pipelines (e.g. StreamingFilesDataset, or split-pipelines that use py_func's) to run in GKE- and GKE-like enviornments.

PiperOrigin-RevId: 191897639

6 years agoTweaked docstrings in LayerCollection.
A. Unique TensorFlower [Fri, 6 Apr 2018 16:21:00 +0000 (09:21 -0700)]
Tweaked docstrings in LayerCollection.

PiperOrigin-RevId: 191897098

6 years agoSupport override of device filters for gRPC, by overriding the requests with default...
A. Unique TensorFlower [Fri, 6 Apr 2018 16:11:32 +0000 (09:11 -0700)]
Support override of device filters for gRPC, by overriding the requests with default session config.

PiperOrigin-RevId: 191895856

6 years agoFix up the support for the case where a given array name occurs multiple
A. Unique TensorFlower [Fri, 6 Apr 2018 15:58:14 +0000 (08:58 -0700)]
Fix up the support for the case where a given array name occurs multiple
times in the inputs/outputs list of an op. The (non-essential) computation
of the optimal workspace size had not been updated for that case, causing it
to fail on a simple test case. Moreover, the initial implementation had some
redundant usage of std::find that this CL moves to a shared helper function.

PiperOrigin-RevId: 191894081

6 years agoThe training model need not be built when the kfac optimizer is initialized so the
A. Unique TensorFlower [Fri, 6 Apr 2018 15:48:16 +0000 (08:48 -0700)]
The training model need not be built when the kfac optimizer is initialized so the
self._variables will be empty list.  So pass a function which returns list of trainable variables to estimator.

PiperOrigin-RevId: 191893084

6 years agoAdd description to the LPIRC 2018 competition benchmarker.
A. Unique TensorFlower [Fri, 6 Apr 2018 15:11:24 +0000 (08:11 -0700)]
Add description to the LPIRC 2018 competition benchmarker.

PiperOrigin-RevId: 191889484

6 years agoAvoid marking clusters containing only Identity ops for compilation.
A. Unique TensorFlower [Fri, 6 Apr 2018 14:50:09 +0000 (07:50 -0700)]
Avoid marking clusters containing only Identity ops for compilation.

This would produce clusters where XLA cannot optimize anything.

PiperOrigin-RevId: 191887414

6 years agoDefine PRNG seeding style for new code in Distributions and TF Probability, with...
A. Unique TensorFlower [Fri, 6 Apr 2018 14:13:49 +0000 (07:13 -0700)]
Define PRNG seeding style for new code in Distributions and TF Probability, with rationales.

Implement lightweight PRNG for seed generation in that style.

Enables incremental refactoring of existing code into this style.

PiperOrigin-RevId: 191884573

6 years agoFix typos in XlaCompilationCache
Igor Ganichev [Fri, 6 Apr 2018 13:30:45 +0000 (06:30 -0700)]
Fix typos in XlaCompilationCache

PiperOrigin-RevId: 191881135

6 years agointernal change
A. Unique TensorFlower [Fri, 6 Apr 2018 10:23:54 +0000 (03:23 -0700)]
internal change

PiperOrigin-RevId: 191869400

6 years agoAdd a test to check graceful handling of out-of-memory conditions.
A. Unique TensorFlower [Fri, 6 Apr 2018 08:46:37 +0000 (01:46 -0700)]
Add a test to check graceful handling of out-of-memory conditions.

PiperOrigin-RevId: 191860462

6 years agoFix StringPiece use-after-free in MasterSession::ReffedClientGraph.
Derek Murray [Fri, 6 Apr 2018 05:37:49 +0000 (22:37 -0700)]
Fix StringPiece use-after-free in MasterSession::ReffedClientGraph.

Use the owned ClientGraph as the source for the node_to_name_ map, rather than the borrowed GraphExecutionState (which can be deleted while the ReffedClientGraph is in use).

PiperOrigin-RevId: 191847023

6 years agoUpgrade libpng
Justine Tunney [Fri, 6 Apr 2018 03:43:47 +0000 (20:43 -0700)]
Upgrade libpng

PiperOrigin-RevId: 191840652

6 years agoSwap in the new implementation of while and for loops.
A. Unique TensorFlower [Fri, 6 Apr 2018 03:14:42 +0000 (20:14 -0700)]
Swap in the new implementation of while and for loops.

PiperOrigin-RevId: 191838806

6 years agoExpose the adaptive sampling option for SDCA and shuffle the data when adaptive sampl...
A. Unique TensorFlower [Fri, 6 Apr 2018 02:33:58 +0000 (19:33 -0700)]
Expose the adaptive sampling option for SDCA and shuffle the data when adaptive sampling is off.

PiperOrigin-RevId: 191836004

6 years ago[XLA] Don't call MultidimensionalIndexToLinearIndex in HloEvaluator's convolution...
Justin Lebar [Fri, 6 Apr 2018 02:30:10 +0000 (19:30 -0700)]
[XLA] Don't call MultidimensionalIndexToLinearIndex in HloEvaluator's convolution routine.

Before: ConvolutionTest/0.StridedFilter (41812 ms)
After:  ConvolutionTest/0.StridedFilter (28054 ms)

Speedup: 42 / 28 = 1.5x
PiperOrigin-RevId: 191835735

6 years agoAdd RunMetadata logging to tf.train.ProfilerHook for Tensorboard Memeory/CPU usage...
A. Unique TensorFlower [Fri, 6 Apr 2018 01:50:35 +0000 (18:50 -0700)]
Add RunMetadata logging to tf.train.ProfilerHook for Tensorboard Memeory/CPU usage visualization

PiperOrigin-RevId: 191832832

6 years agoAdded `drop_final_batch` argument to make_batched_features_dataset. This allows the...
A. Unique TensorFlower [Fri, 6 Apr 2018 01:37:19 +0000 (18:37 -0700)]
Added `drop_final_batch` argument to make_batched_features_dataset. This allows the batch_and_drop_remainder function to be used instead of the default batch function.

PiperOrigin-RevId: 191831842

6 years ago[XLA] Don't call Literal::Get in HloEvaluator's convolution loop.
Justin Lebar [Fri, 6 Apr 2018 01:23:32 +0000 (18:23 -0700)]
[XLA] Don't call Literal::Get in HloEvaluator's convolution loop.

This speeds up the implementation of conv because Literal::Get calls
Literal::Piece::data, which is relatively slow.

Instead, we call Literal::Data() once and cache the result.

Before: ConvolutionTest/0.StridedFilter (59094 ms)
After:  ConvolutionTest/0.StridedFilter (41812 ms)

Speedup: 59/42 = 1.4x
PiperOrigin-RevId: 191830741

6 years agoLazily evaluate shapes with the C API enabled.
Skye Wanderman-Milne [Fri, 6 Apr 2018 01:21:54 +0000 (18:21 -0700)]
Lazily evaluate shapes with the C API enabled.

This change makes it so shapes are computed only when requested with
_USE_C_API = True. Note that the C API will still raise a shape error
if necessary when the op is created.

In addition, it cleans up the logic for _USE_C_SHAPES = True. In this
case, we lazily fetch and cache shapes directly from the C API. We no
longer need set_shapes_for_outputs at all in this case.

PiperOrigin-RevId: 191830565

6 years ago refactor and add proto field required by POD support.
A. Unique TensorFlower [Fri, 6 Apr 2018 00:43:43 +0000 (17:43 -0700)]
  refactor and add proto field required by POD support.

PiperOrigin-RevId: 191826636

6 years agoAdd a command line parameter to toco to change the way toco rescales input and output...
A. Unique TensorFlower [Fri, 6 Apr 2018 00:35:00 +0000 (17:35 -0700)]
Add a command line parameter to toco to change the way toco rescales input and output tensors.

PiperOrigin-RevId: 191825756

6 years agoAutomated g4 rollback of changelist 191605505
Tony Wang [Fri, 6 Apr 2018 00:24:33 +0000 (17:24 -0700)]
Automated g4 rollback of changelist 191605505

PiperOrigin-RevId: 191824447

6 years agoMake concat handler support mixed range input
A. Unique TensorFlower [Fri, 6 Apr 2018 00:08:50 +0000 (17:08 -0700)]
Make concat handler support mixed range input

PiperOrigin-RevId: 191822664

6 years agoAdded an option to inline all functions in aggressive mode.
Benoit Steiner [Thu, 5 Apr 2018 23:46:12 +0000 (16:46 -0700)]
Added an option to inline all functions in aggressive mode.

PiperOrigin-RevId: 191819577

6 years agoAdd link for index file in performance tab.
Mark Daoust [Thu, 5 Apr 2018 22:48:27 +0000 (15:48 -0700)]
Add link for index file in performance tab.

PiperOrigin-RevId: 191811610

6 years agoAdd functions to extract the basic symbols on which a composite name relies. This...
A. Unique TensorFlower [Thu, 5 Apr 2018 22:37:50 +0000 (15:37 -0700)]
Add functions to extract the basic symbols on which a composite name relies. This in turn allows to statically obtain a block's syntactic closure.

PiperOrigin-RevId: 191809965

6 years ago[TF:XLA] No need to set return value in the while loop's condition.
A. Unique TensorFlower [Thu, 5 Apr 2018 22:32:27 +0000 (15:32 -0700)]
[TF:XLA] No need to set return value in the while loop's condition.

PiperOrigin-RevId: 191809110

6 years agoAdd for and while loops to the list of operators. Do not use them yet.
A. Unique TensorFlower [Thu, 5 Apr 2018 22:25:32 +0000 (15:25 -0700)]
Add for and while loops to the list of operators. Do not use them yet.

PiperOrigin-RevId: 191807973

6 years agoAdd Raspberry Pi section and link to github build instructions.
Billy Lamberta [Thu, 5 Apr 2018 22:25:00 +0000 (15:25 -0700)]
Add Raspberry Pi section and link to github build instructions.

PiperOrigin-RevId: 191807862

6 years agoMake tf.contrib.estimator.add_metrics work with warm-starting.
A. Unique TensorFlower [Thu, 5 Apr 2018 22:11:02 +0000 (15:11 -0700)]
Make tf.contrib.estimator.add_metrics work with warm-starting.

PiperOrigin-RevId: 191805682

6 years agoDisable tests that are currently failing with cuda 9
A. Unique TensorFlower [Thu, 5 Apr 2018 22:09:19 +0000 (15:09 -0700)]
Disable tests that are currently failing with cuda 9

PiperOrigin-RevId: 191805453

6 years ago[XLA] Better support for mul reductions in MakeFakeArguments()
Michael Kuperstein [Thu, 5 Apr 2018 21:54:36 +0000 (14:54 -0700)]
[XLA] Better support for mul reductions in MakeFakeArguments()

Mul reductions want a 1 as their init value, not a 0 or a random value.

PiperOrigin-RevId: 191802819

6 years agoFix TF_ImportGraphDefResults and TF_Function leaks in Python API.
Skye Wanderman-Milne [Thu, 5 Apr 2018 21:22:54 +0000 (14:22 -0700)]
Fix TF_ImportGraphDefResults and TF_Function leaks in Python API.

PiperOrigin-RevId: 191797853

6 years agoquantized LSTM support improvements
A. Unique TensorFlower [Thu, 5 Apr 2018 21:05:03 +0000 (14:05 -0700)]
quantized LSTM support improvements

PiperOrigin-RevId: 191794956

6 years agoChanges loss_reduction default to SUM_OVER_BATCH_SIZE for multi_class_head and binary...
A. Unique TensorFlower [Thu, 5 Apr 2018 20:55:45 +0000 (13:55 -0700)]
Changes loss_reduction default to SUM_OVER_BATCH_SIZE for multi_class_head and binary_classification_head.

PiperOrigin-RevId: 191793392

6 years agoEnable branch prediction in TensorFlow
Justine Tunney [Thu, 5 Apr 2018 20:23:08 +0000 (13:23 -0700)]
Enable branch prediction in TensorFlow

PiperOrigin-RevId: 191788253

6 years ago[XLA] Remove a dead function and a stale todo.
A. Unique TensorFlower [Thu, 5 Apr 2018 20:12:26 +0000 (13:12 -0700)]
[XLA] Remove a dead function and a stale todo.

PiperOrigin-RevId: 191786563

6 years agoAutomated g4 rollback of changelist 191753026
A. Unique TensorFlower [Thu, 5 Apr 2018 20:00:06 +0000 (13:00 -0700)]
Automated g4 rollback of changelist 191753026

PiperOrigin-RevId: 191784709

6 years agoSave the original from_proto method before calling it to avoid infinite loop.
Priya Gupta [Thu, 5 Apr 2018 19:57:49 +0000 (12:57 -0700)]
Save the original from_proto method before calling it to avoid infinite loop.

PiperOrigin-RevId: 191784430

6 years agoFix regression caused by cl/191020868: Re-use materialized shapes for other broadcast...
A. Unique TensorFlower [Thu, 5 Apr 2018 19:18:34 +0000 (12:18 -0700)]
Fix regression caused by cl/191020868: Re-use materialized shapes for other broadcast gradient shape nodes.

PiperOrigin-RevId: 191779263

6 years agoFix final eval bottleneck creation to work in cases where it isn't cached already.
Suharsh Sivakumar [Thu, 5 Apr 2018 18:36:43 +0000 (11:36 -0700)]
Fix final eval bottleneck creation to work in cases where it isn't cached already.

Fixes #17423

PiperOrigin-RevId: 191773001

6 years agoAutomated g4 rollback of changelist 191761109
A. Unique TensorFlower [Thu, 5 Apr 2018 18:30:35 +0000 (11:30 -0700)]
Automated g4 rollback of changelist 191761109

PiperOrigin-RevId: 191771969

6 years agoExpose odeint_fixed in tf.contrib.integrate
Stephan Hoyer [Thu, 5 Apr 2018 18:18:49 +0000 (11:18 -0700)]
Expose odeint_fixed in tf.contrib.integrate

PiperOrigin-RevId: 191769890

6 years agoInternal change
A. Unique TensorFlower [Thu, 5 Apr 2018 18:17:58 +0000 (11:17 -0700)]
Internal change

PiperOrigin-RevId: 191769724

6 years agoSync only the convolutional_recurrent file to Keras 2.1.5.
Anjali Sridhar [Thu, 5 Apr 2018 17:41:40 +0000 (10:41 -0700)]
Sync only the convolutional_recurrent file to Keras 2.1.5.

PiperOrigin-RevId: 191763101

6 years agoInline more functions
Benoit Steiner [Thu, 5 Apr 2018 17:29:15 +0000 (10:29 -0700)]
Inline more functions

PiperOrigin-RevId: 191761109

6 years agoExpand activity analysis to the test nodes of if and while statements.
A. Unique TensorFlower [Thu, 5 Apr 2018 16:57:58 +0000 (09:57 -0700)]
Expand activity analysis to the test nodes of if and while statements.

PiperOrigin-RevId: 191756234

6 years agoInclude the operators module in the test framework as well.
A. Unique TensorFlower [Thu, 5 Apr 2018 16:56:50 +0000 (09:56 -0700)]
Include the operators module in the test framework as well.

PiperOrigin-RevId: 191756100

6 years agoRefine BatchReshape error messages.
Joshua V. Dillon [Thu, 5 Apr 2018 16:41:31 +0000 (09:41 -0700)]
Refine BatchReshape error messages.

PiperOrigin-RevId: 191754120

6 years agoDocument expected regular structure of the statistical testing library.
A. Unique TensorFlower [Thu, 5 Apr 2018 16:38:40 +0000 (09:38 -0700)]
Document expected regular structure of the statistical testing library.

PiperOrigin-RevId: 191753693

6 years agoAdded a call in CheckpointSaverHook.after_create_session to always save
Sherry Moore [Thu, 5 Apr 2018 16:33:20 +0000 (09:33 -0700)]
Added a call in CheckpointSaverHook.after_create_session to always save
checkpoint before the first training step.

PiperOrigin-RevId: 191753026

6 years agoFix typos in "Profile Model Float Operations" documentation.
A. Unique TensorFlower [Thu, 5 Apr 2018 16:17:57 +0000 (09:17 -0700)]
Fix typos in "Profile Model Float Operations" documentation.

PiperOrigin-RevId: 191751175

6 years agoUse constants in tf.zeros if the constant won't be too big.
Skye Wanderman-Milne [Thu, 5 Apr 2018 15:47:47 +0000 (08:47 -0700)]
Use constants in tf.zeros if the constant won't be too big.

Using fill saves on GraphDef size, but can slow down models since the
total number of ops is greater (fill + shape + constant op). This
change makes us only use fill for large shapes.

PiperOrigin-RevId: 191747456

6 years agoFix docstring.
A. Unique TensorFlower [Thu, 5 Apr 2018 15:47:27 +0000 (08:47 -0700)]
Fix docstring.

PiperOrigin-RevId: 191747417