platform/upstream/tensorflow.git
6 years agoMerge commit for internal changes
Michael Case [Wed, 30 May 2018 22:34:30 +0000 (15:34 -0700)]
Merge commit for internal changes

6 years agoAvoid recursion in ExpandDomain() as stack is not happy.
A. Unique TensorFlower [Wed, 30 May 2018 22:24:17 +0000 (15:24 -0700)]
Avoid recursion in ExpandDomain() as stack is not happy.

PiperOrigin-RevId: 198629366

6 years agoAdd kwargs support for tpu.outside_compilation
A. Unique TensorFlower [Wed, 30 May 2018 22:03:25 +0000 (15:03 -0700)]
Add kwargs support for tpu.outside_compilation

PiperOrigin-RevId: 198625799

6 years agoMove RemoveInvolution optimization to optimizer stage.
A. Unique TensorFlower [Wed, 30 May 2018 21:55:54 +0000 (14:55 -0700)]
Move RemoveInvolution optimization to optimizer stage.

PiperOrigin-RevId: 198624394

6 years agoAdd GCS configure ops.
Brennan Saeta [Wed, 30 May 2018 22:25:46 +0000 (15:25 -0700)]
Add GCS configure ops.

PiperOrigin-RevId: 198624285

6 years agoMerge pull request #19633 from yifeif/branch_198434814
Yifei Feng [Wed, 30 May 2018 21:58:10 +0000 (14:58 -0700)]
Merge pull request #19633 from yifeif/branch_198434814

Branch 198434814

6 years agoAdd `fill_triangular_inverse`, which flattens a triangular matrix in a way such that:
Joshua V. Dillon [Wed, 30 May 2018 21:52:57 +0000 (14:52 -0700)]
Add `fill_triangular_inverse`, which flattens a triangular matrix in a way such that:
# Lower triangular matrix
x = tf.matrix_band_part(x, -1, 0)
x == fill_triangular(fill_triangular_inverse(x))
Code by srvasude@ which I'm submitting on his behalf.

PiperOrigin-RevId: 198623887

6 years agoAdd control dependencies to the correct graph when simplifying packing ops.
Benoit Steiner [Wed, 30 May 2018 21:45:56 +0000 (14:45 -0700)]
Add control dependencies to the correct graph when simplifying packing ops.

PiperOrigin-RevId: 198622727

6 years agoAdd `tf.contrib.distributions.bijectors.MatrixInverseTriL`: Bijector that inverts...
A. Unique TensorFlower [Wed, 30 May 2018 21:44:57 +0000 (14:44 -0700)]
Add `tf.contrib.distributions.bijectors.MatrixInverseTriL`: Bijector that inverts a lower-triangular matrix.

PiperOrigin-RevId: 198622553

6 years agoAdd include file which provides the proper std::string mapping.
A. Unique TensorFlower [Wed, 30 May 2018 21:33:54 +0000 (14:33 -0700)]
Add include file which provides the proper std::string mapping.

PiperOrigin-RevId: 198620715

6 years agoFix CreateWrapperCPPFromBuffer properly by aselle@.
Yifei Feng [Wed, 30 May 2018 20:57:18 +0000 (13:57 -0700)]
Fix CreateWrapperCPPFromBuffer properly by aselle@.

6 years agoSkip errors in function optimizer if optimized graph was not modified before error...
A. Unique TensorFlower [Wed, 30 May 2018 18:48:43 +0000 (11:48 -0700)]
Skip errors in function optimizer if optimized graph was not modified before error happened.

Currently error can happen if function can't be instantiated as GrapplerFunctionItem.

PiperOrigin-RevId: 198595096

6 years ago[tf.data] change batch dataset op test size to large to prevent timeout
Jiri Simsa [Wed, 30 May 2018 18:30:23 +0000 (11:30 -0700)]
[tf.data] change batch dataset op test size to large to prevent timeout

PiperOrigin-RevId: 198592202

6 years agoLet the swig wrapped builder to return the HloModuleProto.
A. Unique TensorFlower [Wed, 30 May 2018 18:12:26 +0000 (11:12 -0700)]
Let the swig wrapped builder to return the HloModuleProto.

PiperOrigin-RevId: 198588920

6 years agoAdd an option to propagate Status in GraphOptimizerStagePipelines.
Rob Sloan [Wed, 30 May 2018 17:56:02 +0000 (10:56 -0700)]
Add an option to propagate Status in GraphOptimizerStagePipelines.

PiperOrigin-RevId: 198585886

6 years agoInternal change
A. Unique TensorFlower [Wed, 30 May 2018 17:40:39 +0000 (10:40 -0700)]
Internal change

PiperOrigin-RevId: 198582954

6 years agoDisable flaky fused_rnn_cell_test
Gunhan Gulsoy [Wed, 30 May 2018 17:35:57 +0000 (10:35 -0700)]
Disable flaky fused_rnn_cell_test

PiperOrigin-RevId: 198582181

6 years agoAdd "python 3 only" support for bazel build (#19443)
Yong Tang [Wed, 30 May 2018 16:47:00 +0000 (09:47 -0700)]
Add "python 3 only" support for bazel build (#19443)

* Add python 3 only support for bazel build

When building tensorflow in a python3 system (i.e.,
only `/usr/bin/python3`, no `/usr/bin/python`), even
though `/usr/bin/python3` is specified during the configure
the following failure still occur:
```
SUBCOMMAND: # //tensorflow/core:version_info_gen [action 'Executing genrule //tensorflow/core:version_info_gen [for host]']
(cd /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; tensorflow/tools/git/gen_git_source.py --generate external/local_config_git/gen/spec.json external/local_config_git/gen/head external/local_config_git/gen/branch_ref "bazel-out/host/genfiles/tensorflow/core/util/version_info.cc" --git_tag_override=${GIT_TAG_OVERRIDE:-}')
ERROR: /home/ubuntu/tensorflow/tensorflow/core/BUILD:2015:1: Executing genrule //tensorflow/core:version_info_gen failed (Exit 127)
/usr/bin/env: 'python': No such file or directory
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/ubuntu/tensorflow/tensorflow/tools/api/generator/BUILD:27:1 Executing genrule //tensorflow/core:version_info_gen failed (Exit 127)
INFO: Elapsed time: 391.217s, Critical Path: 46.74s
INFO: 656 processes, local.
FAILED: Build did NOT complete successfully
```

This fix adds the necessary `${PYTHON_BIN_PATH}` (configured already in `./configure`)
into related commands so that bazel build works even in python 3 only environment.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Fix build failure for api generator in python 3 only environment

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add `${PYTHON_BIN_PATH}` to cython build

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Optionally add PYTHON_BIN_PATH for non-windows only

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
6 years agoKL divergence for two Dirichlet distributions.
A. Unique TensorFlower [Wed, 30 May 2018 16:39:57 +0000 (09:39 -0700)]
KL divergence for two Dirichlet distributions.

PiperOrigin-RevId: 198573236

6 years agoAdding tf.name_scope blocks to make the TensorBoard graph visualization usable.
A. Unique TensorFlower [Wed, 30 May 2018 16:14:12 +0000 (09:14 -0700)]
Adding tf.name_scope blocks to make the TensorBoard graph visualization usable.

PiperOrigin-RevId: 198569786

6 years ago[tf.data] Adding a concurrency stress test for `map_and_batch`.
Jiri Simsa [Wed, 30 May 2018 15:53:16 +0000 (08:53 -0700)]
[tf.data] Adding a concurrency stress test for `map_and_batch`.

PiperOrigin-RevId: 198566777

6 years agointernal
Mustafa Ispir [Wed, 30 May 2018 15:00:34 +0000 (08:00 -0700)]
internal

PiperOrigin-RevId: 198560342

6 years agobeautify test output file name.
A. Unique TensorFlower [Wed, 30 May 2018 14:13:33 +0000 (07:13 -0700)]
beautify test output file name.

PiperOrigin-RevId: 198555383

6 years agoRemove unused Make variables from tf_py_wrap_cc.
A. Unique TensorFlower [Wed, 30 May 2018 07:58:29 +0000 (00:58 -0700)]
Remove unused Make variables from tf_py_wrap_cc.

PiperOrigin-RevId: 198518885

6 years agoAdds GPU kernel registration for igamma, igammac.
Brian Patton [Wed, 30 May 2018 07:14:37 +0000 (00:14 -0700)]
Adds GPU kernel registration for igamma, igammac.

Switches use_gpu=True to force_gpu=True for cwise_ops_test.

PiperOrigin-RevId: 198515293

6 years agoImprove error message when a missing feature name is passed as a unicode string.
A. Unique TensorFlower [Wed, 30 May 2018 07:06:26 +0000 (00:06 -0700)]
Improve error message when a missing feature name is passed as a unicode string.

PiperOrigin-RevId: 198514621

6 years agoFix GPU build on windows
Smit Hinsu [Wed, 30 May 2018 06:52:59 +0000 (23:52 -0700)]
Fix GPU build on windows

PiperOrigin-RevId: 198513480

6 years agointernal cleanup
A. Unique TensorFlower [Wed, 30 May 2018 04:39:20 +0000 (21:39 -0700)]
internal cleanup

PiperOrigin-RevId: 198504528

6 years agoIntroduced kDomain HLO instruction set isolation to bound connected sets of instructi...
A. Unique TensorFlower [Wed, 30 May 2018 04:24:36 +0000 (21:24 -0700)]
Introduced kDomain HLO instruction set isolation to bound connected sets of instructions with similar attributes (ie, sharding).
This CL simply adds the infrastructure, but leaves the wire-on to a separate CL.

PiperOrigin-RevId: 198503625

6 years agoAdd features to HloRunner for running while leaving buffers on the device and add...
Bjarke Hammersholt Roune [Wed, 30 May 2018 04:10:43 +0000 (21:10 -0700)]
Add features to HloRunner for running while leaving buffers on the device and add option to test_utils for generating more-boring data much faster.

PiperOrigin-RevId: 198502753

6 years agoDo not allow cross computation instruction lookups in HLO parser.
A. Unique TensorFlower [Wed, 30 May 2018 02:50:19 +0000 (19:50 -0700)]
Do not allow cross computation instruction lookups in HLO parser.

PiperOrigin-RevId: 198496653

6 years agoFix for Raspberry Pi wheel architecture tags (#19637)
Pete Warden [Wed, 30 May 2018 02:24:45 +0000 (19:24 -0700)]
Fix for Raspberry Pi wheel architecture tags (#19637)

6 years ago[XLA] Minor HloSharding cleanups.
Justin Lebar [Wed, 30 May 2018 02:07:32 +0000 (19:07 -0700)]
[XLA] Minor HloSharding cleanups.

Delete dead code in HloSharding::ToString(), and add and use proper
hasher struct.

PiperOrigin-RevId: 198493972

6 years agoRemove unnecessary shape registration fn from cudnn rnn ops.
James Qin [Wed, 30 May 2018 01:17:19 +0000 (18:17 -0700)]
Remove unnecessary shape registration fn from cudnn rnn ops.

The registered ones are the same as default.

PiperOrigin-RevId: 198489529

6 years agoMaking RPC op handle the case where cancellation manager is not initialized in OpKern...
Jiri Simsa [Wed, 30 May 2018 01:10:27 +0000 (18:10 -0700)]
Making RPC op handle the case where cancellation manager is not initialized in OpKernelContext.

Fixes #19496

PiperOrigin-RevId: 198488860

6 years agoConvenience functions to create TensorProto directly from data (std::vector).
Alexander Gorban [Wed, 30 May 2018 00:51:13 +0000 (17:51 -0700)]
Convenience functions to create TensorProto directly from data (std::vector).

PiperOrigin-RevId: 198486802

6 years agoFix tflite error:
Yifei Feng [Wed, 30 May 2018 00:49:36 +0000 (17:49 -0700)]
Fix tflite error:
TypeError: in method 'InterpreterWrapper_CreateWrapperCPPFromBuffer', argument 1 of type 'char const *'

6 years agoUse absolute indexing in `fill_triangular`.
Joshua V. Dillon [Wed, 30 May 2018 00:42:37 +0000 (17:42 -0700)]
Use absolute indexing in `fill_triangular`.

PiperOrigin-RevId: 198485926

6 years agoFixing a bug in `map_and_batch_fusion` and improving test coverage.
Jiri Simsa [Wed, 30 May 2018 00:08:59 +0000 (17:08 -0700)]
Fixing a bug in `map_and_batch_fusion` and improving test coverage.

PiperOrigin-RevId: 198481898

6 years agoAdd tf.keras programmer's guide.
Francois Chollet [Tue, 29 May 2018 23:57:17 +0000 (16:57 -0700)]
Add tf.keras programmer's guide.

PiperOrigin-RevId: 198480159

6 years agoFix documented numpy equivalent of matrix_triangular_solve.
A. Unique TensorFlower [Tue, 29 May 2018 23:47:59 +0000 (16:47 -0700)]
Fix documented numpy equivalent of matrix_triangular_solve.

PiperOrigin-RevId: 198478933

6 years agoAutomated g4 rollback of changelist 198137414
Justin Lebar [Tue, 29 May 2018 23:41:00 +0000 (16:41 -0700)]
Automated g4 rollback of changelist 198137414

PiperOrigin-RevId: 198477942

6 years agoAdjust TPUEstimator timeout for worker shutdown to 60 seconds.
Russell Power [Tue, 29 May 2018 23:36:16 +0000 (16:36 -0700)]
Adjust TPUEstimator timeout for worker shutdown to 60 seconds.

PiperOrigin-RevId: 198477309

6 years agoWraps the FinalOp exection with a user-friendly error mssage.
Jianwei Xie [Tue, 29 May 2018 23:33:25 +0000 (16:33 -0700)]
Wraps the FinalOp exection with a user-friendly error mssage.

PiperOrigin-RevId: 198476911

6 years agoUpdate setup.py with project description and development status.
Yifei Feng [Tue, 29 May 2018 23:22:46 +0000 (16:22 -0700)]
Update setup.py with project description and development status.

PiperOrigin-RevId: 198475440

6 years agoAdd microbenchmarks for the executor.
Derek Murray [Tue, 29 May 2018 23:22:22 +0000 (16:22 -0700)]
Add microbenchmarks for the executor.

PiperOrigin-RevId: 198475385

6 years ago streaming trace viewer need to filter host.
A. Unique TensorFlower [Tue, 29 May 2018 22:56:42 +0000 (15:56 -0700)]
  streaming trace viewer need to filter host.

PiperOrigin-RevId: 198471853

6 years agoAdding a check in eager metrics to make sure that the shapes of labels and prediction...
Rohan Jain [Tue, 29 May 2018 22:31:04 +0000 (15:31 -0700)]
Adding a check in eager metrics to make sure that the shapes of labels and predictions are exactly the same. The issue is that math_ops.equal would do broadcasting and so even if the shapes weren't entirely equal it'll produce an output which would be incorrect rather that reporting an error.

PiperOrigin-RevId: 198468251

6 years agoIn TPUEstimator.export_savedmodel(), if saving TPU metegraph fails, issue a warning...
A. Unique TensorFlower [Tue, 29 May 2018 21:28:59 +0000 (14:28 -0700)]
In TPUEstimator.export_savedmodel(), if saving TPU metegraph fails, issue a warning instead so that user can still use the CPU metagraph.

PiperOrigin-RevId: 198458571

6 years ago[tf.data] better benchmarking code in tests for measuring improvements to csv parsing
Rachel Lim [Tue, 29 May 2018 21:22:18 +0000 (14:22 -0700)]
[tf.data] better benchmarking code in tests for measuring improvements to csv parsing

PiperOrigin-RevId: 198457501

6 years agoFix more merge error.
Yifei Feng [Tue, 29 May 2018 21:08:54 +0000 (14:08 -0700)]
Fix more merge error.

6 years ago[TF:XLA] Implement Bucketize.
Peter Hawkins [Tue, 29 May 2018 20:53:17 +0000 (13:53 -0700)]
[TF:XLA] Implement Bucketize.

PiperOrigin-RevId: 198452289

6 years agoMake the quantize_and_dequantize op use the full quantized range when possible.
A. Unique TensorFlower [Tue, 29 May 2018 20:44:28 +0000 (13:44 -0700)]
Make the quantize_and_dequantize op use the full quantized range when possible.

PiperOrigin-RevId: 198450816

6 years agoFix merge error.
Yifei Feng [Tue, 29 May 2018 20:39:54 +0000 (13:39 -0700)]
Fix merge error.

6 years agoAutomated g4 rollback of changelist 198421828
A. Unique TensorFlower [Tue, 29 May 2018 20:06:57 +0000 (13:06 -0700)]
Automated g4 rollback of changelist 198421828

PiperOrigin-RevId: 198444757

6 years agoMerge commit for internal changes
Yifei Feng [Tue, 29 May 2018 19:57:14 +0000 (12:57 -0700)]
Merge commit for internal changes

6 years agoIncrease tolerances in depthwise_conv_op_test.
Justin Lebar [Tue, 29 May 2018 19:05:19 +0000 (12:05 -0700)]
Increase tolerances in depthwise_conv_op_test.

PiperOrigin-RevId: 198434814

6 years agoUse target machine features to determine max vectorization width for GEMM
Sanjoy Das [Tue, 29 May 2018 19:02:57 +0000 (12:02 -0700)]
Use target machine features to determine max vectorization width for GEMM

PiperOrigin-RevId: 198434296

6 years agoL2HMC trained with strongly correlated Gaussian. Simple testing
A. Unique TensorFlower [Tue, 29 May 2018 19:01:11 +0000 (12:01 -0700)]
L2HMC trained with strongly correlated Gaussian. Simple testing
and benchmark with eager and graph mode execution.

PiperOrigin-RevId: 198433911

6 years agoExtracts the 'remove split or splitv nodes' optimization into its own method.
A. Unique TensorFlower [Tue, 29 May 2018 18:55:17 +0000 (11:55 -0700)]
Extracts the 'remove split or splitv nodes' optimization into its own method.

PiperOrigin-RevId: 198432976

6 years ago[TF:XLA] Bump open source llvm revision to r333395
Sanjoy Das [Tue, 29 May 2018 18:51:20 +0000 (11:51 -0700)]
[TF:XLA] Bump open source llvm revision to r333395

PiperOrigin-RevId: 198432337

6 years agoGo: Update generated wrapper functions for TensorFlow ops.
A. Unique TensorFlower [Tue, 29 May 2018 18:46:26 +0000 (11:46 -0700)]
Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 198431534

6 years agoAdd note to bijector_impl.py explaining that `log_det_jacobian` is `log(*abs*(det...
A. Unique TensorFlower [Tue, 29 May 2018 18:32:25 +0000 (11:32 -0700)]
Add note to bijector_impl.py explaining that `log_det_jacobian` is `log(*abs*(det(Jacobian)))`.

PiperOrigin-RevId: 198428995

6 years ago[XLA] Clarify that options passed to LocalService override legacy_flags values.
Justin Lebar [Tue, 29 May 2018 18:19:19 +0000 (11:19 -0700)]
[XLA] Clarify that options passed to LocalService override legacy_flags values.

PiperOrigin-RevId: 198426696

6 years agoUpdate ops-related pbtxt files.
A. Unique TensorFlower [Tue, 29 May 2018 18:18:54 +0000 (11:18 -0700)]
Update ops-related pbtxt files.

PiperOrigin-RevId: 198426617

6 years agoTile on the M dimension in GEBP.
Sanjoy Das [Tue, 29 May 2018 18:14:43 +0000 (11:14 -0700)]
Tile on the M dimension in GEBP.

After this change the inner reduction loop in GEBP multiplies a tile from the
LHS and a tile from the RHS to get a result tile.

PiperOrigin-RevId: 198425769

6 years ago [tpu:profiler] Add a new field to the statistics collected at each step.
A. Unique TensorFlower [Tue, 29 May 2018 18:13:36 +0000 (11:13 -0700)]
  [tpu:profiler] Add a new field to the statistics collected at each step.

PiperOrigin-RevId: 198425588

6 years agoExtracts the 'remove shuffle or transpose node' optimization into its own method.
A. Unique TensorFlower [Tue, 29 May 2018 18:12:22 +0000 (11:12 -0700)]
Extracts the 'remove shuffle or transpose node' optimization into its own method.

PiperOrigin-RevId: 198425354

6 years agoAdd security notices for recently discovered and patched vulnerabilities.
Frank Chen [Tue, 29 May 2018 17:57:01 +0000 (10:57 -0700)]
Add security notices for recently discovered and patched vulnerabilities.

PiperOrigin-RevId: 198422244

6 years ago[TF/XLA] Add validation to find ops incompatible with the given device type at the...
A. Unique TensorFlower [Tue, 29 May 2018 17:54:51 +0000 (10:54 -0700)]
[TF/XLA] Add validation to find ops incompatible with the given device type at the beginning of graph compilation.

PiperOrigin-RevId: 198421828

6 years ago Support NHWC_VECT_W in MakeShapeFromFormat.
A. Unique TensorFlower [Tue, 29 May 2018 17:53:40 +0000 (10:53 -0700)]
  Support NHWC_VECT_W in MakeShapeFromFormat.

PiperOrigin-RevId: 198421617

6 years agoUpdate python_configure.bzl (#19614)
Yun Peng [Tue, 29 May 2018 17:37:55 +0000 (19:37 +0200)]
Update python_configure.bzl (#19614)

Add BAZEL_SH environment variable as a dependency of python_configure repository rule

6 years agoAdd AnonymousIteratorHandleOp for non-shared Iterator resources
Allen Lavoie [Tue, 29 May 2018 17:34:20 +0000 (10:34 -0700)]
Add AnonymousIteratorHandleOp for non-shared Iterator resources

Fixes Iterator cleanup when executing eagerly. DestroyResourceOp will now remove the last reference from the Iterator resource when it runs (after the last Python reference to an EagerIterator is removed).

Previously EagerIterator used IteratorHandleOp to create resource handles, which used one kernel per (unique) shared name since the shared name was an attribute. These kernels each held a reference to their resource, which kept it alive indefinitely.

Fixes #19499.

PiperOrigin-RevId: 198417997

6 years agoClarify argument types and relationships in docstrings of statistical_testing.py.
A. Unique TensorFlower [Tue, 29 May 2018 17:17:39 +0000 (10:17 -0700)]
Clarify argument types and relationships in docstrings of statistical_testing.py.

PiperOrigin-RevId: 198414898

6 years agoAdd mirror for nasm (#19349)
Guido Zuidhof [Tue, 29 May 2018 17:17:51 +0000 (18:17 +0100)]
Add mirror for nasm (#19349)

6 years agoEliminate self.test_session in favor of self.evaluate in statistical_testing_test.py.
A. Unique TensorFlower [Tue, 29 May 2018 16:49:42 +0000 (09:49 -0700)]
Eliminate self.test_session in favor of self.evaluate in statistical_testing_test.py.

PiperOrigin-RevId: 198410306

6 years agoClean up: handle the hidden additional clause on for loops in a way that's clearer...
Dan Moldovan [Tue, 29 May 2018 16:46:21 +0000 (09:46 -0700)]
Clean up: handle the hidden additional clause on for loops in a way that's clearer about what it does.

PiperOrigin-RevId: 198409797

6 years agoMerge pull request #19574 from braincodercn/patch-1
Michael Case [Tue, 29 May 2018 16:45:09 +0000 (09:45 -0700)]
Merge pull request #19574 from braincodercn/patch-1

Fix build error

6 years agoClean up: remove useless super delegation.
Dan Moldovan [Tue, 29 May 2018 16:15:44 +0000 (09:15 -0700)]
Clean up: remove useless super delegation.

PiperOrigin-RevId: 198405670

6 years ago Fixed memory leak with py_func (#18292) (#19085)
voegtlel [Tue, 29 May 2018 16:15:10 +0000 (18:15 +0200)]
 Fixed memory leak with py_func (#18292) (#19085)

* Fixing memory leak with py_func (#18292)

* Fixed memory leak with py_func (#18292)

6 years agoAllow assignment to subscripts in static analysis.
Dan Moldovan [Tue, 29 May 2018 15:45:28 +0000 (08:45 -0700)]
Allow assignment to subscripts in static analysis.

Move the handling of syntactic unpackings to a generic helper function since the pattern is used in multiple places. Update the type info analyzer to correctly process function arguments.

PiperOrigin-RevId: 198401368

6 years agoGeneralize assert_true_mean_equal and assert_true_mean_equal_two_sample to assert_tru...
A. Unique TensorFlower [Tue, 29 May 2018 15:36:14 +0000 (08:36 -0700)]
Generalize assert_true_mean_equal and assert_true_mean_equal_two_sample to assert_true_mean_in_interval.

PiperOrigin-RevId: 198400265

6 years agoRe-apply #18192.
Asim Shankar [Tue, 29 May 2018 07:50:34 +0000 (00:50 -0700)]
Re-apply #18192.

PiperOrigin-RevId: 198358055

6 years agoFix an incorrect precondition check in IndexedArrayAnalysis
Sanjoy Das [Tue, 29 May 2018 06:55:19 +0000 (23:55 -0700)]
Fix an incorrect precondition check in IndexedArrayAnalysis

PiperOrigin-RevId: 198354001

6 years agoPass HloOpcode instead of HloInstruction; NFC
Sanjoy Das [Tue, 29 May 2018 06:03:39 +0000 (23:03 -0700)]
Pass HloOpcode instead of HloInstruction; NFC

Minor code cleanup change.

PiperOrigin-RevId: 198351045

6 years agoMake IndexedArrayAnalysis behave well around StatusOr
Sanjoy Das [Tue, 29 May 2018 05:16:46 +0000 (22:16 -0700)]
Make IndexedArrayAnalysis behave well around StatusOr

PiperOrigin-RevId: 198348355

6 years agopython_configure.bzl: Find bash binary path through BAZEL_SH env var. (#19598)
Yun Peng [Tue, 29 May 2018 03:05:08 +0000 (05:05 +0200)]
python_configure.bzl: Find bash binary path through BAZEL_SH env var. (#19598)

* python_configure.bzl: Find bash binary path through BAZEL_SH env var.

This helps avoid invoking the wrong bash binary when "Bash on Ubuntu on Windows"
is installed.

Fixed https://github.com/tensorflow/tensorflow/issues/11735

* Readability modifications.

6 years agoWindows: fail gracefully when undname.exe is not found (#19600)
Yun Peng [Tue, 29 May 2018 03:04:59 +0000 (05:04 +0200)]
Windows: fail gracefully when undname.exe is not found (#19600)

* Windows: fail gracefully when undname.exe is not found

* Edit error message.

6 years agoMerge pull request #19539 from AD-530/master
Michael Case [Mon, 28 May 2018 19:23:35 +0000 (12:23 -0700)]
Merge pull request #19539 from AD-530/master

Add missing deps for simd_armv8a in jpeg.BUILD

6 years agoMerge pull request #19577 from tensorflow/terrytangyuan-patch-1
Michael Case [Mon, 28 May 2018 19:22:14 +0000 (12:22 -0700)]
Merge pull request #19577 from tensorflow/terrytangyuan-patch-1

Fixed typo in exporter.py

6 years agoMerge pull request #19580 from ManHyuk/fix_typo
Michael Case [Mon, 28 May 2018 19:21:48 +0000 (12:21 -0700)]
Merge pull request #19580 from ManHyuk/fix_typo

Fix typo

6 years agoAdding tf.data optimization for rewriting `map(...).batch(...)` to `map_and_batch...
Jiri Simsa [Mon, 28 May 2018 16:33:49 +0000 (09:33 -0700)]
Adding tf.data optimization for rewriting `map(...).batch(...)` to `map_and_batch(...)`.

PiperOrigin-RevId: 198310806

6 years agoSort variables in C++ instead of Python.
Tom Hennigan [Mon, 28 May 2018 13:32:04 +0000 (06:32 -0700)]
Sort variables in C++ instead of Python.

PiperOrigin-RevId: 198298103

6 years agoRelax compatibility checks for Protocol Buffer classes, to not rely on the exact...
A. Unique TensorFlower [Mon, 28 May 2018 12:21:13 +0000 (05:21 -0700)]
Relax compatibility checks for Protocol Buffer classes, to not rely on the exact layout of the generated classes. The definition of the message is checked instead.

PiperOrigin-RevId: 198292780

6 years ago[XLA] Don't display metadata inline in HLO graph dump.
Justin Lebar [Sun, 27 May 2018 20:27:28 +0000 (13:27 -0700)]
[XLA] Don't display metadata inline in HLO graph dump.

We only want to display it in the tooltip.

PiperOrigin-RevId: 198235268

6 years agoTPUEstimator.export_savedmodel() saves a SavedModel with both TPU and CPU graphs.
A. Unique TensorFlower [Sun, 27 May 2018 17:49:12 +0000 (10:49 -0700)]
TPUEstimator.export_savedmodel() saves a SavedModel with both TPU and CPU graphs.

PiperOrigin-RevId: 198229550

6 years agofix typo
ManHyuk [Sun, 27 May 2018 07:07:47 +0000 (16:07 +0900)]
fix typo

6 years agoMerge branch 'master' into fix_typo
ManHyuk [Sun, 27 May 2018 07:03:14 +0000 (16:03 +0900)]
Merge branch 'master' into fix_typo

6 years agoFixed typo in exporter.py
Yuan (Terry) Tang [Sat, 26 May 2018 18:49:29 +0000 (14:49 -0400)]
Fixed typo in exporter.py

6 years agoFix build error
braincodercn [Sat, 26 May 2018 16:25:10 +0000 (00:25 +0800)]
Fix build error

Fix build error: 'function' in namespace 'std' does not name a template type