platform/upstream/tensorflow.git
6 years agoupdates test function for new shuffle error type and message
Krish Ravindranath [Mon, 7 May 2018 15:43:52 +0000 (11:43 -0400)]
updates test function for new shuffle error type and message

6 years agoupdates docstring with new shuffle error type and message
Krish Ravindranath [Mon, 7 May 2018 15:43:25 +0000 (11:43 -0400)]
updates docstring with new shuffle error type and message

6 years agochanges error to ValueError, notes that shuffle must be provided and should be set...
Krish Ravindranath [Thu, 19 Apr 2018 18:53:10 +0000 (14:53 -0400)]
changes error to ValueError, notes that shuffle must be provided and should be set True for training

6 years agoMerge pull request #17019 from yifeif/branch_185747281
Martin Wicke [Thu, 15 Feb 2018 00:31:17 +0000 (16:31 -0800)]
Merge pull request #17019 from yifeif/branch_185747281

Branch 185747281

6 years agoNew roadmap (#16984)
Sandeep N Gupta [Thu, 15 Feb 2018 00:23:57 +0000 (16:23 -0800)]
New roadmap (#16984)

Updating the roadmap.

6 years agoMerge commit for internal changes
Yifei Feng [Wed, 14 Feb 2018 22:51:09 +0000 (14:51 -0800)]
Merge commit for internal changes

6 years agoSupports op exp (tf.exp) in Toco and Tensorflow Lite.
A. Unique TensorFlower [Wed, 14 Feb 2018 22:40:29 +0000 (14:40 -0800)]
Supports op exp (tf.exp) in Toco and Tensorflow Lite.

PiperOrigin-RevId: 185747281

6 years agoset_shape fix in _UnreadVariable
Alexandre Passos [Wed, 14 Feb 2018 21:57:29 +0000 (13:57 -0800)]
set_shape fix in _UnreadVariable

PiperOrigin-RevId: 185740099

6 years ago[XLA] Add reproducer that shows perf issues in HloDataflowAnalysis::UpdateTupleValueS...
Nick Desaulniers [Wed, 14 Feb 2018 21:52:18 +0000 (13:52 -0800)]
[XLA] Add reproducer that shows perf issues in HloDataflowAnalysis::UpdateTupleValueSet, then optimize that method.

HloDataflowAnalysis::UpdateTupleValueSet starts to show up in profiles for while bodies that have many GetTupleElement nodes.

Use a set to keep track of which HloInstructions we need to propagate DFA for.

PiperOrigin-RevId: 185739365

6 years agoFixes MovingAverageOptimizer when dealing with resource variables.
A. Unique TensorFlower [Wed, 14 Feb 2018 21:51:23 +0000 (13:51 -0800)]
Fixes MovingAverageOptimizer when dealing with resource variables.
Also make it an error if user tries to use swapping_saver with some variables but do not include their EMA counterparts.

PiperOrigin-RevId: 185739214

6 years agoAdded C-API based unit tests for GPU and XLA GPU testing.
Mingsheng Hong [Wed, 14 Feb 2018 21:51:14 +0000 (13:51 -0800)]
Added C-API based unit tests for GPU and XLA GPU testing.

Also refined the API comment for TF_NewSession().

PiperOrigin-RevId: 185739196

6 years ago[tf.data] Add usage note to `tf.data.Iterator.get_next()` docstring.
Derek Murray [Wed, 14 Feb 2018 21:48:36 +0000 (13:48 -0800)]
[tf.data] Add usage note to `tf.data.Iterator.get_next()` docstring.

Fixes #16954.

PiperOrigin-RevId: 185738793

6 years agoFor Split, pick the 'axis' value from the first input tensor.
A. Unique TensorFlower [Wed, 14 Feb 2018 21:33:37 +0000 (13:33 -0800)]
For Split, pick the 'axis' value from the first input tensor.

PiperOrigin-RevId: 185736499

6 years ago[XLA:python] Plumb method to get program shape / return shape from builder.
Chris Leary [Wed, 14 Feb 2018 21:16:30 +0000 (13:16 -0800)]
[XLA:python] Plumb method to get program shape / return shape from builder.

Will be useful for setting layouts on compile options for AOT local API.

PiperOrigin-RevId: 185733615

6 years agoAdd the utils module to the uncompiled whitelist.
A. Unique TensorFlower [Wed, 14 Feb 2018 21:12:56 +0000 (13:12 -0800)]
Add the utils module to the uncompiled whitelist.

PiperOrigin-RevId: 185733139

6 years agoExposing a tensor_list data structure
A. Unique TensorFlower [Wed, 14 Feb 2018 20:48:25 +0000 (12:48 -0800)]
Exposing a tensor_list data structure

PiperOrigin-RevId: 185729104

6 years ago[TF:XLA] Bump open source llvm revision to r325135
Sanjoy Das [Wed, 14 Feb 2018 20:35:44 +0000 (12:35 -0800)]
[TF:XLA] Bump open source llvm revision to r325135

PiperOrigin-RevId: 185727281

6 years agoFixing IdentifyRelu1 transform to recognize min+max in addition to max+min.
A. Unique TensorFlower [Wed, 14 Feb 2018 20:24:33 +0000 (12:24 -0800)]
Fixing IdentifyRelu1 transform to recognize min+max in addition to max+min.

PiperOrigin-RevId: 185725946

6 years agoReturn Status instead of bool in Init(), Flush(), and Close().
Jonathan Hseu [Wed, 14 Feb 2018 20:21:30 +0000 (12:21 -0800)]
Return Status instead of bool in Init(), Flush(), and Close().

With tf.contrib.summary, a remote worker will be writing summaries. If they just LOG the error, then the user doesn't see them.

PiperOrigin-RevId: 185725556

6 years ago[XLA] Add a test for map with static operands in the local Python client.
Roy Frostig [Wed, 14 Feb 2018 20:18:48 +0000 (12:18 -0800)]
[XLA] Add a test for map with static operands in the local Python client.

PiperOrigin-RevId: 185725205

6 years agoMinor refactoring: rename the _canonicalization.py files, consistent with the list...
A. Unique TensorFlower [Wed, 14 Feb 2018 19:28:29 +0000 (11:28 -0800)]
Minor refactoring: rename the _canonicalization.py files, consistent with the list comprehension transformer.

PiperOrigin-RevId: 185717464

6 years agoCheck if ops used in the model are supported by op resolver
A. Unique TensorFlower [Wed, 14 Feb 2018 19:24:59 +0000 (11:24 -0800)]
Check if ops used in the model are supported by op resolver

PiperOrigin-RevId: 185716870

6 years agoChange the title of the compatibility guide document
Yu-Cheng Ling [Wed, 14 Feb 2018 19:06:17 +0000 (11:06 -0800)]
Change the title of the compatibility guide document

PiperOrigin-RevId: 185713755

6 years agoMake the TF Lite test driver more informative.
A. Unique TensorFlower [Wed, 14 Feb 2018 19:05:52 +0000 (11:05 -0800)]
Make the TF Lite test driver more informative.

PiperOrigin-RevId: 185713663

6 years agoCall png_error if reading fails
David G. Andersen [Wed, 14 Feb 2018 19:01:49 +0000 (11:01 -0800)]
Call png_error if reading fails
Allows faster exit from reading corrupt PNG files.

PiperOrigin-RevId: 185712829

6 years agoAdding specialized logic for depthwise convolution of depth 20.
A. Unique TensorFlower [Wed, 14 Feb 2018 18:37:47 +0000 (10:37 -0800)]
Adding specialized logic for depthwise convolution of depth 20.

PiperOrigin-RevId: 185708424

6 years agoTensorflow driver to execute the given tf graphdef, and generate output
A. Unique TensorFlower [Wed, 14 Feb 2018 18:37:32 +0000 (10:37 -0800)]
Tensorflow driver to execute the given tf graphdef, and generate output

PiperOrigin-RevId: 185708396

6 years agoFactor VectorOfTensors out of concatenation.cc
A. Unique TensorFlower [Wed, 14 Feb 2018 18:14:58 +0000 (10:14 -0800)]
Factor VectorOfTensors out of concatenation.cc

PiperOrigin-RevId: 185704744

6 years agoAPI incompatibility fix in _UnreadVariable
Alexandre Passos [Wed, 14 Feb 2018 17:50:21 +0000 (09:50 -0800)]
API incompatibility fix in _UnreadVariable

PiperOrigin-RevId: 185700704

6 years agoCanonicalize list comprehensions into equivalent for and if statements.
A. Unique TensorFlower [Wed, 14 Feb 2018 17:10:46 +0000 (09:10 -0800)]
Canonicalize list comprehensions into equivalent for and if statements.

PiperOrigin-RevId: 185695579

6 years agoDecreases number of gRPC polling threads from 8 to 2.
Noah Eisen [Wed, 14 Feb 2018 16:18:41 +0000 (08:18 -0800)]
Decreases number of gRPC polling threads from 8 to 2.

PiperOrigin-RevId: 185688704

6 years agoBuild file bug fix for iOS simulators.
A. Unique TensorFlower [Wed, 14 Feb 2018 16:18:17 +0000 (08:18 -0800)]
Build file bug fix for iOS simulators.

PiperOrigin-RevId: 185688662

6 years agoeffective_sample_size kwarg change (same default behavior).
Ian Langmore [Wed, 14 Feb 2018 12:02:15 +0000 (04:02 -0800)]
effective_sample_size kwarg change (same default behavior).

* rename max_lags --> filter_beyond_lag
* rename max_lags_threshold --> filter_threshold
* Users can use both filters, and they combine in an "OR" manner
* None ==> turn off a filter.

PiperOrigin-RevId: 185666926

6 years agoFix the comment for the return type _dnn_model_fn and _dnn_linear_combined_model_fn.
A. Unique TensorFlower [Wed, 14 Feb 2018 08:38:42 +0000 (00:38 -0800)]
Fix the comment for the return type _dnn_model_fn and _dnn_linear_combined_model_fn.

PiperOrigin-RevId: 185651142

6 years agotfe SPINN example: Add inference; fix serialization
Shanqing Cai [Wed, 14 Feb 2018 05:49:28 +0000 (21:49 -0800)]
tfe SPINN example: Add inference; fix serialization

* Also de-flake a test.

PiperOrigin-RevId: 185637742

6 years ago[TF:XLA] Tag reverse_sequence test as optonly, increase its timeout.
Peter Hawkins [Wed, 14 Feb 2018 05:45:08 +0000 (21:45 -0800)]
[TF:XLA] Tag reverse_sequence test as optonly, increase its timeout.

PiperOrigin-RevId: 185637431

6 years agoFix tf.keras progbar display.
Francois Chollet [Wed, 14 Feb 2018 04:39:33 +0000 (20:39 -0800)]
Fix tf.keras progbar display.

PiperOrigin-RevId: 185632155

6 years agoFor models running in Eager mode, do not update the weights of the BatchNorm layer...
Anjali Sridhar [Wed, 14 Feb 2018 03:16:08 +0000 (19:16 -0800)]
For models running in Eager mode, do not update the weights of the BatchNorm layer if the layer's trainable argument is False.

This change is required in Eager mode to freeze a layer's weights when we set the layer's trainable attribute to False.

This should not be confused with the "training" attribute which refers to a model's training or inference mode behavior.

PiperOrigin-RevId: 185625661

6 years agoAutomated g4 rollback of changelist 185598764
A. Unique TensorFlower [Wed, 14 Feb 2018 02:57:53 +0000 (18:57 -0800)]
Automated g4 rollback of changelist 185598764

PiperOrigin-RevId: 185623948

6 years agoInternal Change.
A. Unique TensorFlower [Wed, 14 Feb 2018 01:53:13 +0000 (17:53 -0800)]
Internal Change.

PiperOrigin-RevId: 185618034

6 years agoTensorBoard debugger plugin: SIGINT handler for easier termination of debugged runtime
Shanqing Cai [Wed, 14 Feb 2018 01:52:50 +0000 (17:52 -0800)]
TensorBoard debugger plugin: SIGINT handler for easier termination of debugged runtime

from TensorBoardDebugWrapperSession and TensorBoardDebugHook.

PiperOrigin-RevId: 185617989

6 years agoDon't release kInvalidHandle.
Rohan Jain [Wed, 14 Feb 2018 01:26:18 +0000 (17:26 -0800)]
Don't release kInvalidHandle.

Also added a little more debug information.

PiperOrigin-RevId: 185615169

6 years agoLazily reads from resource variables in eager mode.
Alexandre Passos [Wed, 14 Feb 2018 01:16:34 +0000 (17:16 -0800)]
Lazily reads from resource variables in eager mode.

PiperOrigin-RevId: 185614070

6 years ago[XLA:GPU] Don't crash when the root instruction of a computation is a multi-output...
Justin Lebar [Wed, 14 Feb 2018 01:16:29 +0000 (17:16 -0800)]
[XLA:GPU] Don't crash when the root instruction of a computation is a multi-output fusion node, and avoid some pointer chasing with tuples.

Previously, the kernels we generated would have one argument per
*top-level* buffer of the input/output.  This was fine for inputs.  But
it doesn't work for outputs: Imagine you're a node that returns a tuple
-- e.g. multi-output fusion -- if all you get is a pointer to the
top-level buffer of your output (which should contain pointers to the
lower-level buffers at some point, but at the moment is just empty), how
are you supposed to figure out where to write your output?

(This usually worked because most of the time your output would live
inside of the big XLA temp buffer, and kernels always get a pointer to
that.)

Now we pass all the buffers, top-level and otherwise, to our kernel.  In
addition, we're now willing to dereference statically tuples that live
entirely in XLA's temp buffer.  Pointers in input tuples must still be
dereferenced dynamically, because the caller has the option of giving us
these values or not when invoking XLA.

This change makes some parts of BufferAssignment/BufferAllocations more
truthful.  Previously, if you passed a tuple-shaped input to XLA, we'd
say in BufferAllocations that the pointer for some subshape of the param
was the *top-level tuple pointer*.  XLA then knew that this was a lie
and would dereference it accordingly.  Now we have an explicit notion of
a BufferAllocation pointing to a subshape of an input parameter.

PiperOrigin-RevId: 185614060

6 years agoImprove type safety around float constants
Sanjoy Das [Wed, 14 Feb 2018 00:55:54 +0000 (16:55 -0800)]
Improve type safety around float constants

Instead of passing floating point constants to the vector support library as
compiler-side floats, pass them as APFloats instead.  This reduces the duration
during which these constants are semantically represented as floats on the host
side and are subject to fast-math-like behavior.  This is especially important
in cases where the exact bit representation of the floating point constant is
significant, but also makes progress towards ensuring that e.g. build XLA with
-ffast-math does not change the IR we generate.

PiperOrigin-RevId: 185611301

6 years agoFix incorrect is_training parameter.
Suharsh Sivakumar [Wed, 14 Feb 2018 00:43:21 +0000 (16:43 -0800)]
Fix incorrect is_training parameter.

And remove many is_training default values to avoid these mistakes from happening again.

PiperOrigin-RevId: 185609589

6 years agoUpdate TPU Profiler to be able to take a TPU name
A. Unique TensorFlower [Wed, 14 Feb 2018 00:43:20 +0000 (16:43 -0800)]
Update TPU Profiler to be able to take a TPU name

PiperOrigin-RevId: 185609588

6 years agoCleanupFunc doesn't need to do cleanup if _py_funcs is already destroyed.
Akshay Modi [Wed, 14 Feb 2018 00:17:55 +0000 (16:17 -0800)]
CleanupFunc doesn't need to do cleanup if _py_funcs is already destroyed.

PiperOrigin-RevId: 185606203

6 years agoAllow an option to delete the temporary file created at compilation on exit. Defaulti...
A. Unique TensorFlower [Wed, 14 Feb 2018 00:09:00 +0000 (16:09 -0800)]
Allow an option to delete the temporary file created at compilation on exit. Defaulting it to true, though we may want to keep it off during development.

PiperOrigin-RevId: 185604628

6 years agoWire in support for XLA kConditional instruction.
A. Unique TensorFlower [Tue, 13 Feb 2018 23:29:00 +0000 (15:29 -0800)]
Wire in support for XLA kConditional instruction.

PiperOrigin-RevId: 185598764

6 years agoAdd instructions for building CUDA-enabled Android TensorFlow (#16961)
Andrew Harp [Tue, 13 Feb 2018 23:20:07 +0000 (18:20 -0500)]
Add instructions for building CUDA-enabled Android TensorFlow (#16961)

* Add instructions for building CUDA-enabled Android TensorFlow

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

6 years agoChange linkage type of modules to external after dropping initializers
Sanjoy Das [Tue, 13 Feb 2018 22:55:24 +0000 (14:55 -0800)]
Change linkage type of modules to external after dropping initializers

It isn't legal to have private global variables without initializers.  In the
current state the -noconst.ll LLVM IR cannot be passed to opt.

PiperOrigin-RevId: 185593073

6 years agoCode cleanup: Made Executor related API take std::unique_ptr<const Graph> instead...
Mingsheng Hong [Tue, 13 Feb 2018 22:52:31 +0000 (14:52 -0800)]
Code cleanup: Made Executor related API take std::unique_ptr<const Graph> instead of const Graph* as input.

PiperOrigin-RevId: 185592574

6 years ago[TF-XLA] Disable Tensorflow's CSE in xla compiler
Yunxing Dai [Tue, 13 Feb 2018 22:51:25 +0000 (14:51 -0800)]
[TF-XLA] Disable Tensorflow's CSE in xla compiler

No need to do CSE in TF-XLA bridge, as XLA already has its own CSE pass later in the compilation pipeline. This removes one source of nondeterminism.

RELNOTES: CSE pass from Tensorflow is now disabled in XLA.
PiperOrigin-RevId: 185592383

6 years agoMerge pull request #16991 from yifeif/branch_185565363
Martin Wicke [Tue, 13 Feb 2018 22:47:30 +0000 (14:47 -0800)]
Merge pull request #16991 from yifeif/branch_185565363

Branch 185565363

6 years agoAdd label_wav_dir.py (#14847)
DONGGEON LIM [Tue, 13 Feb 2018 22:38:11 +0000 (23:38 +0100)]
Add label_wav_dir.py (#14847)

* Add label_wav_dir.py

* Modify label_wav_dir.py

6 years agoadd not equal op to tf_op_files.txt (#14319)
resec [Tue, 13 Feb 2018 22:37:54 +0000 (06:37 +0800)]
add not equal op to tf_op_files.txt (#14319)

6 years agoUse a more advanced py_func wrapper, one that allows non-tensor args to be passed...
A. Unique TensorFlower [Tue, 13 Feb 2018 21:56:24 +0000 (13:56 -0800)]
Use a more advanced py_func wrapper, one that allows non-tensor args to be passed directly to the wrapped function.

PiperOrigin-RevId: 185583023

6 years ago[TF:XLA] Bump open source llvm revision to r324990
Sanjoy Das [Tue, 13 Feb 2018 21:54:52 +0000 (13:54 -0800)]
[TF:XLA] Bump open source llvm revision to r324990

PiperOrigin-RevId: 185582753

6 years agoInternal Change
Zhixian Yan [Tue, 13 Feb 2018 21:42:11 +0000 (13:42 -0800)]
Internal Change

PiperOrigin-RevId: 185580787

6 years agoAdd `Kumaraswamy` to distributions __init__.py
A. Unique TensorFlower [Tue, 13 Feb 2018 21:30:20 +0000 (13:30 -0800)]
Add `Kumaraswamy` to distributions __init__.py

PiperOrigin-RevId: 185578929

6 years agoMake LLVM IR dumps more readable
Sanjoy Das [Tue, 13 Feb 2018 20:45:27 +0000 (12:45 -0800)]
Make LLVM IR dumps more readable

Before this the IR we dumped out would contain constant tensors that were
sometimes huge resulting in unweildy IR files.  With this change we dump out a
"noconst" IR file that has the constant initializers stripped out.

PiperOrigin-RevId: 185572700

6 years agoExtract the filter and input shape for Conv2DBackpropFilter/Conv2DBackpropInput
Benoit Steiner [Tue, 13 Feb 2018 20:31:59 +0000 (12:31 -0800)]
Extract the filter and input shape for Conv2DBackpropFilter/Conv2DBackpropInput
from the corresponding op inputs whenever possible.

PiperOrigin-RevId: 185570750

6 years agoFix bug in populating the execution plan sent to the delegate.
Andrew Selle [Tue, 13 Feb 2018 20:24:02 +0000 (12:24 -0800)]
Fix bug in populating the execution plan sent to the delegate.

- memcpy was missing the array size.
- modified the unit test to verify that the execution plan is
trivial on first delegate invocation.

PiperOrigin-RevId: 185569606

6 years agoMerge commit for internal changes
Yifei Feng [Tue, 13 Feb 2018 20:18:17 +0000 (12:18 -0800)]
Merge commit for internal changes

6 years agoAdd cache for _zeros in backprop
Akshay Modi [Tue, 13 Feb 2018 20:10:40 +0000 (12:10 -0800)]
Add cache for _zeros in backprop

PiperOrigin-RevId: 185567508

6 years agoMinor eager-related performance improvements
Akshay Modi [Tue, 13 Feb 2018 19:56:59 +0000 (11:56 -0800)]
Minor eager-related performance improvements

- Add a cache for name_scope
- skip some overhead _MulGrad and _MatMulGrad

PiperOrigin-RevId: 185565363

6 years agoExplicitely place the swap-in node: this ensures that subsequent rounds of
Benoit Steiner [Tue, 13 Feb 2018 19:46:08 +0000 (11:46 -0800)]
Explicitely place the swap-in node: this ensures that subsequent rounds of
memory optimization have a more accurate picture of the placement.

PiperOrigin-RevId: 185563797

6 years agoError out or log a warning if user sets the TPUConfig.num_shards incorrectly.
Jianwei Xie [Tue, 13 Feb 2018 19:33:12 +0000 (11:33 -0800)]
Error out or log a warning if user sets the TPUConfig.num_shards incorrectly.
Also improve TPU system metadata print out message.

PiperOrigin-RevId: 185561680

6 years agoAllow other types of variables to act as a resource variable.
Igor Saprykin [Tue, 13 Feb 2018 19:18:15 +0000 (11:18 -0800)]
Allow other types of variables to act as a resource variable.

Introduce resource_variable_ops.is_resource_variable() function that returns true
if an _should_act_as_resource_variable attribute is set.

PiperOrigin-RevId: 185559202

6 years agoadd missing blank line
Mark Daoust [Tue, 13 Feb 2018 18:54:09 +0000 (10:54 -0800)]
add missing blank line

PiperOrigin-RevId: 185554969

6 years agoAdd empty scaffolding for loop optimizers in Grappler.
A. Unique TensorFlower [Tue, 13 Feb 2018 18:48:58 +0000 (10:48 -0800)]
Add empty scaffolding for loop optimizers in Grappler.

PiperOrigin-RevId: 185554126

6 years agoClarify that the behavior of the iterator (advancing whenever any of the components...
A. Unique TensorFlower [Tue, 13 Feb 2018 18:48:43 +0000 (10:48 -0800)]
Clarify that the behavior of the iterator (advancing whenever any of the components is evaluated) is not magic, but a simple consequence of the dataflow graph structure.

PiperOrigin-RevId: 185554089

6 years agoFix documentation for the real shape of the output of crf_log_likelihood.
A. Unique TensorFlower [Tue, 13 Feb 2018 18:36:37 +0000 (10:36 -0800)]
Fix documentation for the real shape of the output of crf_log_likelihood.

PiperOrigin-RevId: 185552171

6 years agoUse _set_attr instead of directly modifying the nodedef
Akshay Modi [Tue, 13 Feb 2018 18:23:53 +0000 (10:23 -0800)]
Use _set_attr instead of directly modifying the nodedef

PiperOrigin-RevId: 185550223

6 years agoMove two common utility functions used by training and training_eager classes to...
Anjali Sridhar [Tue, 13 Feb 2018 18:16:03 +0000 (10:16 -0800)]
Move two common utility functions used by training and training_eager classes to a utility class.

PiperOrigin-RevId: 185548922

6 years agoTiny bugfix to eager TensorArray error message.
Eugene Brevdo [Tue, 13 Feb 2018 17:46:36 +0000 (09:46 -0800)]
Tiny bugfix to eager TensorArray error message.

PiperOrigin-RevId: 185543699

6 years agoMerge pull request #16494 from rongjiecomputer/unroll
Martin Wicke [Tue, 13 Feb 2018 17:49:49 +0000 (09:49 -0800)]
Merge pull request #16494 from rongjiecomputer/unroll

Enable [no]unroll for Clang on Windows

6 years agoMerge pull request #15404 from codrut3/doc_fused_fix
Martin Wicke [Tue, 13 Feb 2018 17:37:21 +0000 (09:37 -0800)]
Merge pull request #15404 from codrut3/doc_fused_fix

DOCS: Update the description of the fused parameter.

6 years agoTF to XLA compiler to support FakeQuantWithMinMaxVars/Args.
A. Unique TensorFlower [Tue, 13 Feb 2018 17:07:12 +0000 (09:07 -0800)]
TF to XLA compiler to support FakeQuantWithMinMaxVars/Args.

PiperOrigin-RevId: 185538228

6 years agoAdd gradient norm target arg to wass gradient penalty function. This trick is usd...
A. Unique TensorFlower [Tue, 13 Feb 2018 16:46:26 +0000 (08:46 -0800)]
Add gradient norm target arg to wass gradient penalty function. This trick is usd in the progressive GAN paper https://arxiv.org/abs/1710.10196

PiperOrigin-RevId: 185535584

6 years agoForce the use of print function in generated code.
A. Unique TensorFlower [Tue, 13 Feb 2018 16:12:09 +0000 (08:12 -0800)]
Force the use of print function in generated code.

PiperOrigin-RevId: 185531979

6 years agoMechanical variable renaming to improve consistency. No other changes.
A. Unique TensorFlower [Tue, 13 Feb 2018 09:08:22 +0000 (01:08 -0800)]
Mechanical variable renaming to improve consistency. No other changes.

Distinguishing between points and vectors: A point refers to a location in the tensor/filter, referred to by channel/row/col. A vector is the difference between two points (mostly 'one_past_the_end - begin'), referred to by depth/height/width.

PiperOrigin-RevId: 185496176

6 years agoInternal change
Gunhan Gulsoy [Tue, 13 Feb 2018 08:13:28 +0000 (00:13 -0800)]
Internal change

PiperOrigin-RevId: 185491705

6 years agoAdd test to ensure that covariance terms of FID is being incorporated meaningfully.
Surya Bhupatiraju [Tue, 13 Feb 2018 07:31:38 +0000 (23:31 -0800)]
Add test to ensure that covariance terms of FID is being incorporated meaningfully.

PiperOrigin-RevId: 185488757

6 years agoDisable interleave_dataset_op_test.py and remove a duplicate entry in test blacklist...
Gunhan Gulsoy [Tue, 13 Feb 2018 07:20:15 +0000 (23:20 -0800)]
Disable interleave_dataset_op_test.py and remove a duplicate entry in test blacklist in cmake build.

PiperOrigin-RevId: 185488210

6 years agoFix typo in build_and_run_inception_hexagon.sh (#16968)
MyungsungKwak [Tue, 13 Feb 2018 07:17:36 +0000 (16:17 +0900)]
Fix typo in build_and_run_inception_hexagon.sh (#16968)

Signed-off-by: MyungSung Kwak <yesmung@gmail.com>
6 years ago1. Add image_ops.is_jpeg Op to decide if a input string is a jpeg string or not.
A. Unique TensorFlower [Tue, 13 Feb 2018 06:54:48 +0000 (22:54 -0800)]
1. Add image_ops.is_jpeg Op to decide if a input string is a jpeg string or not.
2. Change tfexample_decoder in slim/objection_detection to accept different JPEG decompression method.
Defaults to ""/None which maps to a system-specific default. Currently valid values are ["INTEGER_FAST", "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal jpeg library changes to a version that does not have that specific option.)

PiperOrigin-RevId: 185486653

6 years ago[TF:XLA] Work around crash in Gather op on CPU backend by making loop bound a compile...
Peter Hawkins [Tue, 13 Feb 2018 06:45:49 +0000 (22:45 -0800)]
[TF:XLA] Work around crash in Gather op on CPU backend by making loop bound a compile-time constant.

PiperOrigin-RevId: 185486148

6 years ago[XLA:CPU] Implement vectorized Log in LLVM IR
Sanjoy Das [Tue, 13 Feb 2018 05:56:19 +0000 (21:56 -0800)]
[XLA:CPU] Implement vectorized Log in LLVM IR

This was the last vectorized intrinsic for which we had to call into
C++ so also remove the associated machinery.

PiperOrigin-RevId: 185482962

6 years ago[TF:XLA] Implement ScatterNd.
Peter Hawkins [Tue, 13 Feb 2018 02:34:36 +0000 (18:34 -0800)]
[TF:XLA] Implement ScatterNd.

Add a helper method for performing scatter operations. Share it between ScatterNd and UnsortedSegmentSum implementations. In passing, add support for negative indices to the  UnsortedSegmentSum implementation.

Added helper methods for creating XLA while loops. Use the new helper in both Gather and Scatter ops.

PiperOrigin-RevId: 185469229

6 years agoFix TFLite examples/image_label
Yu-Cheng Ling [Tue, 13 Feb 2018 01:58:27 +0000 (17:58 -0800)]
Fix TFLite examples/image_label

PiperOrigin-RevId: 185465716

6 years agoEnable Model subclassing, both in eager-mode and symbolic-mode.
Francois Chollet [Tue, 13 Feb 2018 01:44:01 +0000 (17:44 -0800)]
Enable Model subclassing, both in eager-mode and symbolic-mode.

PiperOrigin-RevId: 185464334

6 years agoRollforward switch group identification with fixes.
Jacques Pienaar [Tue, 13 Feb 2018 01:15:51 +0000 (17:15 -0800)]
Rollforward switch group identification with fixes.

Fixed computing the switch depth: with the erroneous switch depth incorrect
clusters could be formed. Change the way the switch depth is determined (the
switch depth is now on the output side, so a switch always has a switch depth
one higher than all its inputs), add further checking during execution.

PiperOrigin-RevId: 185461054

6 years agoFix a typo in the comments.
A. Unique TensorFlower [Tue, 13 Feb 2018 01:07:27 +0000 (17:07 -0800)]
Fix a typo in the comments.

PiperOrigin-RevId: 185459972

6 years ago[XLA:GPU] Extend the CustomCall for cudnn convolutions to represent
Bixia Zheng [Tue, 13 Feb 2018 00:56:28 +0000 (16:56 -0800)]
[XLA:GPU] Extend the CustomCall for cudnn convolutions to represent
tensor_ops_enabled.

The convolution algorithms returned from the stream executor have a flag
for whether tensor_ops is enabled. This flag is used when running each
algorithm during auto-tunning. However, this flag is not currently represented
in the CustomCall representing the auto-tune result. As a result, the algorithm
may be run differently after auto-tune.

This change adds a constant to the CustomCall for cudnn convolution algorithm
selected by auto-tune, to represent whether tensor_ops is enabled during
auto-tune. This information is used by convolution thunk to ensure that the
algorithm is run with the same flag after auto-tune.

PiperOrigin-RevId: 185458497

6 years agoMerge pull request #16253 from samikama/tensorrt
Yifei Feng [Tue, 13 Feb 2018 00:46:30 +0000 (16:46 -0800)]
Merge pull request #16253 from samikama/tensorrt

Introducing TensorRT operator

6 years agoSupport None trainable variables that don't produce a gradient in replicate_model_fn.
Igor Saprykin [Tue, 13 Feb 2018 00:24:45 +0000 (16:24 -0800)]
Support None trainable variables that don't produce a gradient in replicate_model_fn.

This fixes #16829.

PiperOrigin-RevId: 185453911

6 years agoAutomated g4 rollback of changelist 185420228
Suharsh Sivakumar [Tue, 13 Feb 2018 00:20:07 +0000 (16:20 -0800)]
Automated g4 rollback of changelist 185420228

PiperOrigin-RevId: 185453293

6 years agoMerge pull request #16928 from rongjiecomputer/shapeutil
Martin Wicke [Mon, 12 Feb 2018 23:51:50 +0000 (15:51 -0800)]
Merge pull request #16928 from rongjiecomputer/shapeutil

[MSVC] Use explicit func pointer to static method instead of lambda func