platform/upstream/tensorflow.git
7 years agoFix tf.nn.fractional_max_pool output have same batch size when feed with different...
A. Unique TensorFlower [Wed, 3 Jan 2018 23:10:58 +0000 (15:10 -0800)]
Fix tf.nn.fractional_max_pool output have same batch size when feed with different input batch size. Fixes #14985.

PiperOrigin-RevId: 180724096

7 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Wed, 3 Jan 2018 22:49:36 +0000 (14:49 -0800)]
Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 180721390

7 years ago[XLA] Remove a false invariant used in generating test inputs.
Nick Desaulniers [Wed, 3 Jan 2018 22:19:25 +0000 (14:19 -0800)]
[XLA] Remove a false invariant used in generating test inputs.

This invariant is incorrect; the parameter will never be the shape of the use's
first operand; in fact the param should match operand(1)'s shape for
DynamicSlice and operand(2)'s shape for DynamicUpdateSlice (since start_indices is the argument that we are trying to constrain the bounds for).  This is checked
for in CreateLiteralForConstrainedUses().

PiperOrigin-RevId: 180717508

7 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Wed, 3 Jan 2018 20:42:19 +0000 (12:42 -0800)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 180705266

7 years agoBoilerplate: port a subset of the anno and quoting packages from Tangent. Also includ...
A. Unique TensorFlower [Wed, 3 Jan 2018 19:47:12 +0000 (11:47 -0800)]
Boilerplate: port a subset of the anno and quoting packages from Tangent. Also includes a pretty printer API.

PiperOrigin-RevId: 180698491

7 years agoAutomated g4 rollback of changelist 180670333
Anna R [Wed, 3 Jan 2018 19:00:21 +0000 (11:00 -0800)]
Automated g4 rollback of changelist 180670333

PiperOrigin-RevId: 180691955

7 years agoSet application_id and user_version on TensorBoard DB
Justine Tunney [Wed, 3 Jan 2018 18:34:01 +0000 (10:34 -0800)]
Set application_id and user_version on TensorBoard DB

Formatting was also cleaned up, without making any schema or
documentation changes.

PiperOrigin-RevId: 180688094

7 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Wed, 3 Jan 2018 17:29:24 +0000 (09:29 -0800)]
Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 180679688

7 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Wed, 3 Jan 2018 17:08:02 +0000 (09:08 -0800)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 180677538

7 years agoAdd Snappy support to SQLite
Justine Tunney [Wed, 3 Jan 2018 16:22:37 +0000 (08:22 -0800)]
Add Snappy support to SQLite

This change also puts the necessary build infrastructure in place so we can
continue to build many proper lightweight SQLite extensions in the future that
are easy for users to copy over into their own environments, so they can
readily access their data.

PiperOrigin-RevId: 180673039

7 years agoK-FAC: Add "OnehotCategoricalLogitsNegativeLogProbLoss" to kfac.loss_functions_lib...
A. Unique TensorFlower [Wed, 3 Jan 2018 16:18:13 +0000 (08:18 -0800)]
K-FAC: Add "OnehotCategoricalLogitsNegativeLogProbLoss" to kfac.loss_functions_lib._allowed_symbols.

PiperOrigin-RevId: 180672608

7 years ago[xla] Add RNG ops to local Python client.
A. Unique TensorFlower [Wed, 3 Jan 2018 16:06:42 +0000 (08:06 -0800)]
[xla] Add RNG ops to local Python client.

PiperOrigin-RevId: 180671590

7 years agoRemoving doc strings from REGISTER_OP calls in core/ops.
Anna R [Wed, 3 Jan 2018 15:54:54 +0000 (07:54 -0800)]
Removing doc strings from REGISTER_OP calls in core/ops.

PiperOrigin-RevId: 180670333

7 years agoFix "the the" typo
Mark Daoust [Wed, 3 Jan 2018 15:39:38 +0000 (07:39 -0800)]
Fix "the the" typo

PiperOrigin-RevId: 180669193

7 years agoAdd low pass filtering to the classification results.
Mark Daoust [Wed, 3 Jan 2018 14:59:29 +0000 (06:59 -0800)]
Add low pass filtering to the classification results.

This makes the output much more consistent.

Also round the probabilities to 2 decimal places.

PiperOrigin-RevId: 180666095

7 years agoFix the scope to prepend to names when importing metagraphs.
A. Unique TensorFlower [Wed, 3 Jan 2018 09:46:38 +0000 (01:46 -0800)]
Fix the scope to prepend to names when importing metagraphs.

See #15326

PiperOrigin-RevId: 180645977

7 years agoFixed a typo that resulted in the graph being processed in reverse topological
Benoit Steiner [Wed, 3 Jan 2018 05:45:51 +0000 (21:45 -0800)]
Fixed a typo that resulted in the graph being processed in reverse topological
order. This made shape inference far less efficient than it should be in some cases.

PiperOrigin-RevId: 180629882

7 years agoAutomated g4 rollback of changelist 180622078
Sanjoy Das [Wed, 3 Jan 2018 05:11:25 +0000 (21:11 -0800)]
Automated g4 rollback of changelist 180622078

PiperOrigin-RevId: 180628481

7 years ago[TF:XLA] Bump open source llvm revision to r321639
Sanjoy Das [Wed, 3 Jan 2018 05:11:24 +0000 (21:11 -0800)]
[TF:XLA] Bump open source llvm revision to r321639

PiperOrigin-RevId: 180628480

7 years agoImprovements to the testing infrastructure.
Bjarke Hammersholt Roune [Wed, 3 Jan 2018 04:02:37 +0000 (20:02 -0800)]
Improvements to the testing infrastructure.

 * Added ClientLibraryTestBase::AddParam, which returns an HLO handle and takes only
     a literal (or array) and a builder. Creates a parameter node and remembers the
     data to pass in as the parameter later. No name or index needed.
 * Added ExpandUseBfloat16, which automatically expands the number of test cases and
     tags them with bfloat16 usage or not.

PiperOrigin-RevId: 180624513

7 years agoChanging implementation of warmstarting to be var-based instead of FeatureColumn...
A. Unique TensorFlower [Wed, 3 Jan 2018 04:01:21 +0000 (20:01 -0800)]
Changing implementation of warmstarting to be var-based instead of FeatureColumn-based.

PiperOrigin-RevId: 180624448

7 years ago[tf.data] Saveable iterator for GroupByWindowDataset and NewWindowDataset.
Shivani Agrawal [Wed, 3 Jan 2018 03:12:39 +0000 (19:12 -0800)]
[tf.data] Saveable iterator for GroupByWindowDataset and NewWindowDataset.

PiperOrigin-RevId: 180622227

7 years ago[XLA:CPU] Cleanups to VectorSupportLibrary, TargetMachineFeatures and DotOpEmitter
Sanjoy Das [Wed, 3 Jan 2018 03:09:25 +0000 (19:09 -0800)]
[XLA:CPU] Cleanups to VectorSupportLibrary, TargetMachineFeatures and DotOpEmitter

 - Move VectorSupportLibrary to under service/cpu since it is specific to the
   CPU backend.
 - Use TargetMachineFeatures to infer the vector width in DotOpEmitter
 - Move the kAvxVectorSize magic constant into TargetMachineFeatures

PiperOrigin-RevId: 180622078

7 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Wed, 3 Jan 2018 03:05:45 +0000 (19:05 -0800)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 180621851

7 years ago[xla] Edit XLA SWIG wrapper to release GIL for XLA API calls.
A. Unique TensorFlower [Wed, 3 Jan 2018 02:59:45 +0000 (18:59 -0800)]
[xla] Edit XLA SWIG wrapper to release GIL for XLA API calls.

PiperOrigin-RevId: 180621380

7 years agoImprove the error message when the user uses tf.while_loop() on TPUs.
Jonathan Hseu [Wed, 3 Jan 2018 02:51:11 +0000 (18:51 -0800)]
Improve the error message when the user uses tf.while_loop() on TPUs.

PiperOrigin-RevId: 180620950

7 years agoSupport strided slice ops.
Yao Zhang [Wed, 3 Jan 2018 02:35:16 +0000 (18:35 -0800)]
Support strided slice ops.

PiperOrigin-RevId: 180620055

7 years agoUpgrade the gRPC version used in OSS Tensorflow
Jonathan Hseu [Wed, 3 Jan 2018 02:23:00 +0000 (18:23 -0800)]
Upgrade the gRPC version used in OSS Tensorflow

PiperOrigin-RevId: 180619267

7 years agometa_graph export: Add support to strip default valued attributes.
A. Unique TensorFlower [Wed, 3 Jan 2018 02:19:21 +0000 (18:19 -0800)]
meta_graph export: Add support to strip default valued attributes.

Following APIs now accept an additional argument (`strip_default_attrs`) to
enable/disable (default:disabled) stripping of default valued attributes in a NodeDef:
  o meta_graph: export_meta_graph, create_meta_graph.
  o saver: Saver.save, Saver.export_meta_graph.
  o builder: SavedModelBuilder.add_meta_graph,
             SavedModelBuilder.add_meta_graph_and_variables.
  o estimator: Estimator.export_savedmodel.

Related changes:
  o Pywrap C++ AreAttrValuesEqual to compare two AttrValue instances.
    This allows for a single/canonical way of comparing AttrValues in C++/Python.
  o Add a utility method to meta_graph.py to get the node def by name in a graph def.
  o Update SavedModelBuilder documentation on relevance of strip_default_attrs flag.

PiperOrigin-RevId: 180619001

7 years agoUse SetIsStateful in op registrations for GetSessionHandle GetSessionHandleV2 GetSess...
A. Unique TensorFlower [Wed, 3 Jan 2018 02:19:12 +0000 (18:19 -0800)]
Use SetIsStateful in op registrations for GetSessionHandle GetSessionHandleV2 GetSessionTensor DeleteSessionTensor

These operations are stateful.   Fixes #15589.

PiperOrigin-RevId: 180618992

7 years ago[TF:XLA] Enable a working test case in param_test for the CPU backend.
A. Unique TensorFlower [Wed, 3 Jan 2018 01:33:01 +0000 (17:33 -0800)]
[TF:XLA] Enable a working test case in param_test for the CPU backend.

PiperOrigin-RevId: 180615346

7 years ago[XLA] Document the "Operand to ComputeConstant" error better at the XLA level.
Chris Leary [Wed, 3 Jan 2018 01:20:49 +0000 (17:20 -0800)]
[XLA] Document the "Operand to ComputeConstant" error better at the XLA level.

PiperOrigin-RevId: 180614338

7 years agoMake op_def_library_test.py work with the C API enabled.
Skye Wanderman-Milne [Wed, 3 Jan 2018 01:12:31 +0000 (17:12 -0800)]
Make op_def_library_test.py work with the C API enabled.

This required:
- Defining OpDefs in test_ops.cc instead of in the test file. The ops
  need to be visible to the C++ backend as well as the Python library
  code.
- Running each test case in a new graph. The graph needs to have the C
  API enabled or disabled correctly, and the two versions of each test
  (C API enabled and disabled) have strange interactions if they use
  the same graph.

PiperOrigin-RevId: 180613480

7 years ago[tf.data] Improve error message in `tf.data.FixedLengthRecordDataset`.
Derek Murray [Wed, 3 Jan 2018 01:02:52 +0000 (17:02 -0800)]
[tf.data] Improve error message in `tf.data.FixedLengthRecordDataset`.

The iterator now eagerly returns an error message when the size of an input file
(minus header and footer) is not a multiple of the fixed-length record.

PiperOrigin-RevId: 180612356

7 years agobackward compatibility: Disallow changes to an OpDef attribute's default value.
A. Unique TensorFlower [Wed, 3 Jan 2018 00:52:50 +0000 (16:52 -0800)]
backward compatibility: Disallow changes to an OpDef attribute's default value.

PiperOrigin-RevId: 180611380

7 years agoDefault to printing 3 elements in tf.assert_equals eager
Igor Ganichev [Wed, 3 Jan 2018 00:31:45 +0000 (16:31 -0800)]
Default to printing 3 elements in tf.assert_equals eager

Before this change, we defaulted to not printing any values, which is
different from behavior in graph execution.

closes #15766

PiperOrigin-RevId: 180609069

7 years agoAdjusts the TPU RunConfig to respect parent class master/evaluation master.
Jianwei Xie [Wed, 3 Jan 2018 00:19:27 +0000 (16:19 -0800)]
Adjusts the TPU RunConfig to respect parent class master/evaluation 

PiperOrigin-RevId: 180607766

7 years ago [XLA] Adds a window_util check for trivial window dimensions.
Tayo Oguntebi [Wed, 3 Jan 2018 00:01:32 +0000 (16:01 -0800)]
  [XLA] Adds a window_util check for trivial window dimensions.

PiperOrigin-RevId: 180605538

7 years agoAdd default constructor to ServiceExecutableRunOptions.
A. Unique TensorFlower [Tue, 2 Jan 2018 23:51:47 +0000 (15:51 -0800)]
Add default constructor to ServiceExecutableRunOptions.

PiperOrigin-RevId: 180604410

7 years agoDisable flaky model_analyzer_test on windows.
Gunhan Gulsoy [Tue, 2 Jan 2018 23:12:56 +0000 (15:12 -0800)]
Disable flaky model_analyzer_test on windows.

PiperOrigin-RevId: 180599588

7 years agoAdds _TrainingExecutor.run method to automatically invoke correct procedure.
Jianwei Xie [Tue, 2 Jan 2018 23:05:38 +0000 (15:05 -0800)]
Adds _TrainingExecutor.run method to automatically invoke correct procedure.

PiperOrigin-RevId: 180598558

7 years ago[XLA] Add Infeed op and transfer to the local Python client.
Chris Leary [Tue, 2 Jan 2018 22:48:37 +0000 (14:48 -0800)]
[XLA] Add Infeed op and transfer to the local Python client.

PiperOrigin-RevId: 180596231

7 years agoDeleted dead code
Benoit Steiner [Tue, 2 Jan 2018 22:44:55 +0000 (14:44 -0800)]
Deleted dead code

PiperOrigin-RevId: 180595771

7 years agoSupport tile op.
Yao Zhang [Tue, 2 Jan 2018 22:41:18 +0000 (14:41 -0800)]
Support tile op.

PiperOrigin-RevId: 180595337

7 years agoImplement priority logic in CompositeNodeMangager, in case there're multiple
A. Unique TensorFlower [Tue, 2 Jan 2018 22:23:31 +0000 (14:23 -0800)]
Implement priority logic in CompositeNodeMangager, in case there're multiple
candidate nodes with the same time_ready. The priority order is _Send, _Recv,
and then the other ops. This will also improve run-to-run consistency in
simulated performance.

PiperOrigin-RevId: 180592922

7 years agoSupport SpaceToBatchND in TFLite.
Nupur Garg [Tue, 2 Jan 2018 22:23:13 +0000 (14:23 -0800)]
Support SpaceToBatchND in TFLite.

The internal implementation only supports 4D tensors for now.
The dimension has to be 1 batch + 2 spatial + 1 other.
The most common format within this restriction is NHWC.

PiperOrigin-RevId: 180592870

7 years agoSpeed up `OpKernel::InputRange()` by ~2.6x.
Derek Murray [Tue, 2 Jan 2018 21:53:37 +0000 (13:53 -0800)]
Speed up `OpKernel::InputRange()` by ~2.6x.

This reduces the typical amount of time spent converting an argument
name into a range of positional arguments from ~59.5ns to ~22.5ns. To
achieve this, the `NameRangeMap` is converted to borrow the argument
names (as `tensorflow::StringPiece` objects) from the appropriate
`OpDef`, instead of storing a string. This avoids allocating a string
for each lookup. The map data structure is also changed from a
`std::unordered_map` to a `gtl::FlatMap`.

PiperOrigin-RevId: 180588460

7 years agoAutomated g4 rollback of changelist 180576390
Gunhan Gulsoy [Tue, 2 Jan 2018 21:34:56 +0000 (13:34 -0800)]
Automated g4 rollback of changelist 180576390

PiperOrigin-RevId: 180585948

7 years agoCheck that the second output of a merge node is a scalar.
Benoit Steiner [Tue, 2 Jan 2018 21:18:34 +0000 (13:18 -0800)]
Check that the second output of a merge node is a scalar.

PiperOrigin-RevId: 180584059

7 years agoAutomated g4 rollback of changelist 180000981
A. Unique TensorFlower [Tue, 2 Jan 2018 21:01:59 +0000 (13:01 -0800)]
Automated g4 rollback of changelist 180000981

PiperOrigin-RevId: 180581912

7 years ago[XLA] Add execution with device-persistent data to Python-built local computations.
Roy Frostig [Tue, 2 Jan 2018 20:47:42 +0000 (12:47 -0800)]
[XLA] Add execution with device-persistent data to Python-built local computations.

PiperOrigin-RevId: 180580418

7 years agoAdditional dependencies: astor and termcolor
A. Unique TensorFlower [Tue, 2 Jan 2018 20:44:07 +0000 (12:44 -0800)]
Additional dependencies: astor and termcolor

PiperOrigin-RevId: 180580013

7 years agoMake LICENSE visible to bazel.
A. Unique TensorFlower [Tue, 2 Jan 2018 20:31:37 +0000 (12:31 -0800)]
Make LICENSE visible to bazel.

(The OSS //tensorflow/BUILD file can't see files as they are in the parent directory.)

PiperOrigin-RevId: 180578688

7 years agoInternal cleanup.
A. Unique TensorFlower [Tue, 2 Jan 2018 20:28:57 +0000 (12:28 -0800)]
Internal cleanup.

PiperOrigin-RevId: 180578376

7 years agoMinor change for Python 3 compatibility for TPU Estimators.
Frank Chen [Tue, 2 Jan 2018 20:11:46 +0000 (12:11 -0800)]
Minor change for Python 3 compatibility for TPU Estimators.

PiperOrigin-RevId: 180576479

7 years agoInternal change
A. Unique TensorFlower [Tue, 2 Jan 2018 20:11:10 +0000 (12:11 -0800)]
Internal change

PiperOrigin-RevId: 180576390

7 years agoImplement reference transpose kernel.
Andrew Selle [Tue, 2 Jan 2018 19:32:41 +0000 (11:32 -0800)]
Implement reference transpose kernel.

PiperOrigin-RevId: 180571064

7 years ago[tf.data] Move existing tests to use dataset_serialization_test_base.
Shivani Agrawal [Tue, 2 Jan 2018 19:32:37 +0000 (11:32 -0800)]
[tf.data] Move existing tests to use dataset_serialization_test_base.

PiperOrigin-RevId: 180571052

7 years agoSupport PadV2, MirrorPad, and MirrorPadGrad ops.
Yao Zhang [Tue, 2 Jan 2018 19:32:34 +0000 (11:32 -0800)]
Support PadV2, MirrorPad, and MirrorPadGrad ops.

PiperOrigin-RevId: 180571040

7 years agoUpdate docstring to be more accurate and indicate notes of usage.
Surya Bhupatiraju [Tue, 2 Jan 2018 19:32:34 +0000 (11:32 -0800)]
Update docstring to be more accurate and indicate notes of usage.

PiperOrigin-RevId: 180571039

7 years ago[TF] TPU context subclasses an XLA context from core.
Eugene Brevdo [Tue, 2 Jan 2018 19:26:57 +0000 (11:26 -0800)]
[TF] TPU context subclasses an XLA context from core.

Making it easier to tell in the future if we are inside an XLA context.

PiperOrigin-RevId: 180570231

7 years agore-enabling a test after the llvm bug was fixed
Olivia Nordquist [Tue, 2 Jan 2018 18:50:25 +0000 (10:50 -0800)]
re-enabling a test after the llvm bug was fixed

PiperOrigin-RevId: 180565013

7 years agoRemove using directives. Test appertaining to ops have been moved into namespace...
A. Unique TensorFlower [Tue, 2 Jan 2018 18:45:56 +0000 (10:45 -0800)]
Remove using directives. Test appertaining to ops have been moved into namespace tensorflow::ops; all other tests now use explicit using-declarations.

Some tests are now using unnamed namespaces more aggressively to make as many names internal as possible.

PiperOrigin-RevId: 180564422

7 years ago[XLA] Fix a bug in --xla_hlo_profile and add a test that would have caught it
Sanjoy Das [Tue, 2 Jan 2018 18:37:44 +0000 (10:37 -0800)]
[XLA] Fix a bug in --xla_hlo_profile and add a test that would have caught it

I'm pretty sure I introduced the bug when refactoring HloExecutionProfile some
time back.

Also change the bytes-per-cycle field to use a floating point format when its
value is less than 1, to avoid rounding down to 0 (common on CPU).

PiperOrigin-RevId: 180563380

7 years agoLet tf.constant_initializer accept tuples as intiail values
Shanqing Cai [Tue, 2 Jan 2018 18:24:55 +0000 (10:24 -0800)]
Let tf.constant_initializer accept tuples as intiail values

following CL/180416775

PiperOrigin-RevId: 180561696

7 years agoGrappler item_test: fix item order dependency
Shanqing Cai [Tue, 2 Jan 2018 16:38:44 +0000 (08:38 -0800)]
Grappler item_test: fix item order dependency

by replacing assertEqual() with assertItemsEqual()

Fixes test failures such as:
http://ci.tensorflow.org/view/Tensorflow%20Jenkins%20Monitored%20builds/job/nightly-matrix-cpu/TF_BUILD_IS_PIP=NO_PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/763/consoleFull

PiperOrigin-RevId: 180550331

7 years agoRemove 'gpu_clang' CI Docker image, use 'gpu' image instead.
Ilya Biryukov [Tue, 2 Jan 2018 13:06:01 +0000 (05:06 -0800)]
Remove 'gpu_clang' CI Docker image, use 'gpu' image instead.

The clang is now downloaded using the new TF_DOWNLOAD_CLANG option at build
time.

Also removes GPU-specific env vars from 'tools/ci_build/builds/configured',
they are now passed directly to 'docker run' instead.

PiperOrigin-RevId: 180536813

7 years agoK-FAC: Support onehot categorical in kfac.loss_functions.
A. Unique TensorFlower [Tue, 2 Jan 2018 13:02:34 +0000 (05:02 -0800)]
K-FAC: Support onehot categorical in kfac.loss_functions.

PiperOrigin-RevId: 180536416

7 years agoDisable flaky replicate_model_fn_test.
Gunhan Gulsoy [Tue, 2 Jan 2018 05:48:15 +0000 (21:48 -0800)]
Disable flaky replicate_model_fn_test.

PiperOrigin-RevId: 180512413

7 years agoDesign tweaks of Fisher Factor classes. Now they don't declare ops in their construc...
A. Unique TensorFlower [Mon, 31 Dec 2018 17:53:18 +0000 (09:53 -0800)]
Design tweaks of Fisher Factor classes.  Now they don't declare ops in their constructors, except possibly for making the cov variables (is this considered an op?).  This should allow for easier control over device placement of various ops in the future.

Fixed some problems with how colocations were done for ops computed in the base class and in the RNN class.

Colocations now controlled with global configuration variable (similar to the rest of the configuration of the FisherFactor classes).

PiperOrigin-RevId: 180441903

7 years agoUsability improvement for tf.constant_initializer
Shanqing Cai [Sun, 31 Dec 2017 05:25:36 +0000 (21:25 -0800)]
Usability improvement for tf.constant_initializer

* Raise TypeError if the input value is not one of the expected types,
  e.g., a tf.Tensor. Previously, the error is delayed until Session.run()
  time and the message is very obscure, e.g.,
  "TypeError: Expected float32, got list containing Tensors of type
   '_Message' instead."

PiperOrigin-RevId: 180416775

7 years agoUpdate TOCO for user friendly error messages.
A. Unique TensorFlower [Sat, 30 Dec 2017 03:03:15 +0000 (19:03 -0800)]
Update TOCO for user friendly error messages.

PiperOrigin-RevId: 180368346

7 years agoAdd dependency on gast.
A. Unique TensorFlower [Fri, 29 Dec 2017 20:14:30 +0000 (12:14 -0800)]
Add dependency on gast.

PiperOrigin-RevId: 180354109

7 years agoMinor change to make tpu.rewrite compatible with Python 3.
Frank Chen [Fri, 29 Dec 2017 01:30:49 +0000 (17:30 -0800)]
Minor change to make tpu.rewrite compatible with Python 3.

AttrValue is a byte array, and handling this is different between Python 2 and 3.

PiperOrigin-RevId: 180306415

7 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Fri, 29 Dec 2017 01:13:39 +0000 (17:13 -0800)]
Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 180305698

7 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Fri, 29 Dec 2017 01:04:47 +0000 (17:04 -0800)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 180305277

7 years agoFix tf.train.piecewise_constant docstring example.
Reed Wanderman-Milne [Fri, 29 Dec 2017 01:00:26 +0000 (17:00 -0800)]
Fix tf.train.piecewise_constant docstring example.

The example currently implies that if the global_step is on the first boundary, it takes the second value, not the first. In reality, it takes the first value.

PiperOrigin-RevId: 180304929

7 years ago[XLA:CPU] Use a simpler mechanism to fetch llvm::TargetTransformInfo
Sanjoy Das [Fri, 29 Dec 2017 00:47:34 +0000 (16:47 -0800)]
[XLA:CPU] Use a simpler mechanism to fetch llvm::TargetTransformInfo

This resolves the TODO.  The backing change landed in LLVM in
https://reviews.llvm.org/rL321375

PiperOrigin-RevId: 180304271

7 years ago[TF:XLA] Bump open source llvm revision to r321490
Sanjoy Das [Fri, 29 Dec 2017 00:13:40 +0000 (16:13 -0800)]
[TF:XLA] Bump open source llvm revision to r321490

PiperOrigin-RevId: 180302351

7 years agoMerge changes from github.
Patrick Nguyen [Fri, 29 Dec 2017 00:04:42 +0000 (16:04 -0800)]
Merge changes from github.

PiperOrigin-RevId: 180301735

7 years agoFix saved_model_cli _print_tensor_info for REF types.
Yifei Feng [Thu, 28 Dec 2017 21:57:18 +0000 (13:57 -0800)]
Fix saved_model_cli _print_tensor_info for REF types.
Fix #15611.

PiperOrigin-RevId: 180292752

7 years ago[XLA] Fix hlo_graph_dumper: don't crash if the computation has a constant root instru...
A. Unique TensorFlower [Thu, 28 Dec 2017 20:03:59 +0000 (12:03 -0800)]
[XLA] Fix hlo_graph_dumper: don't crash if the computation has a constant root instruction.

PiperOrigin-RevId: 180285687

7 years ago[XLA:CPU] Implement RngBernoulli for F32 and F64
Sanjoy Das [Thu, 28 Dec 2017 19:26:03 +0000 (11:26 -0800)]
[XLA:CPU] Implement RngBernoulli for F32 and F64

PiperOrigin-RevId: 180283205

7 years agoUpgrade TF CI scripts to use cuda 9.
Gunhan Gulsoy [Thu, 28 Dec 2017 07:43:49 +0000 (23:43 -0800)]
Upgrade TF CI scripts to use cuda 9.

PiperOrigin-RevId: 180246669

7 years agoImprove a text comment in replicate_model_fn.GatheringOptimizer.
Igor Saprykin [Wed, 27 Dec 2017 23:12:38 +0000 (15:12 -0800)]
Improve a text comment in replicate_model_fn.GatheringOptimizer.

PiperOrigin-RevId: 180224227

7 years agoBump the limit on checkpopint_utils_test as it is failing consistently with the curre...
Gunhan Gulsoy [Wed, 27 Dec 2017 19:12:46 +0000 (11:12 -0800)]
Bump the limit on checkpopint_utils_test as it is failing consistently with the current number by a small margin.

PiperOrigin-RevId: 180207280

7 years agoHack around a bug caused by bazel+tempfile+multiprocessing.
Gunhan Gulsoy [Wed, 27 Dec 2017 19:10:26 +0000 (11:10 -0800)]
Hack around a bug caused by bazel+tempfile+multiprocessing.

PiperOrigin-RevId: 180207077

7 years agoFix typo in export_savedmodel api doc.
A. Unique TensorFlower [Wed, 27 Dec 2017 18:27:17 +0000 (10:27 -0800)]
Fix typo in export_savedmodel api doc.

PiperOrigin-RevId: 180203426

7 years agoOptionally store the status code/message in the response
A. Unique TensorFlower [Wed, 27 Dec 2017 18:26:23 +0000 (10:26 -0800)]
Optionally store the status code/message in the response
body for RunGraph and RunStep RPCs, to workaround the fact that the
RPC subsystem truncates long metadata messages.

PiperOrigin-RevId: 180203356

7 years agotfdbg: Fix a bug in source file content reading
Shanqing Cai [Wed, 27 Dec 2017 17:07:25 +0000 (09:07 -0800)]
tfdbg: Fix a bug in source file content reading

Previously, calling strip() removed not only the trailing newline character, but also any leading spaces and tabs, which actually should be preserved. This CL fixes it.

PiperOrigin-RevId: 180198179

7 years agoRemove unwrapping for function argument inspection in Estimator.
Martin Wicke [Tue, 26 Dec 2017 19:07:00 +0000 (11:07 -0800)]
Remove unwrapping for function argument inspection in Estimator.

PiperOrigin-RevId: 180147476

7 years agoAssign subgraph created by cudnn_rnn saveable to the 1st GPU.
James Qin [Sun, 24 Dec 2017 19:34:41 +0000 (11:34 -0800)]
Assign subgraph created by cudnn_rnn saveable to the 1st GPU.

PiperOrigin-RevId: 180053468

7 years ago[TF:XLA] Refactor large list of hard-coded compile-time constant arguments to operato...
Peter Hawkins [Sat, 23 Dec 2017 16:59:26 +0000 (08:59 -0800)]
[TF:XLA] Refactor large list of hard-coded compile-time constant arguments to operators. Add a new .CompileTimeConstInput() annotation on kernel registrations instead.

PiperOrigin-RevId: 180008567

7 years agoAutomated g4 rollback of changelist 179983419
A. Unique TensorFlower [Sat, 23 Dec 2017 12:22:33 +0000 (04:22 -0800)]
Automated g4 rollback of changelist 179983419

PiperOrigin-RevId: 180000981

7 years agoAdds FFT for XLA: CPU via Eigen, GPU via cuFFT.
A. Unique TensorFlower [Sat, 23 Dec 2017 03:28:38 +0000 (19:28 -0800)]
Adds FFT for XLA: CPU via Eigen, GPU via cuFFT.

GPU support includes plan reuse with new scratch allocator per execution in fft_thunk.

PiperOrigin-RevId: 179983419

7 years agoFill the 4th and 5th output of FusedBatchNormGradOp with zeros so that check_op won...
Yuefeng Zhou [Sat, 23 Dec 2017 02:37:27 +0000 (18:37 -0800)]
Fill the 4th and 5th output of FusedBatchNormGradOp with zeros so that check_op won't fail.

PiperOrigin-RevId: 179981448

7 years agoAdds train_hooks into _TrainingExecutor.
Jianwei Xie [Sat, 23 Dec 2017 01:37:51 +0000 (17:37 -0800)]
Adds train_hooks into _TrainingExecutor.

PiperOrigin-RevId: 179978502

7 years agoRemove a few unused constructions and simplfy some code
A. Unique TensorFlower [Sat, 23 Dec 2017 01:37:12 +0000 (17:37 -0800)]
Remove a few unused constructions and simplfy some code

PiperOrigin-RevId: 179978470

7 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Sat, 23 Dec 2017 01:25:41 +0000 (17:25 -0800)]
Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 179977826

7 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Sat, 23 Dec 2017 01:07:23 +0000 (17:07 -0800)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 179976854