Commit Graph

105359 Commits

Author SHA1 Message Date
Christian Sigg
61e0a79713 Merge third_party_http_archive and tf_http_archive repository rules.
PiperOrigin-RevId: 359331157
Change-Id: I34f0fad687b13900b42a60abe9573ae662bfb75e
2021-02-24 11:42:32 -08:00
Frank Chen
00ec3ffbaa Add some missing headers to tpu_api_dlsym_initializer
PiperOrigin-RevId: 359328632
Change-Id: Id8d197efc595cb5856acf0a2a5150a15828ae9db
2021-02-24 11:37:27 -08:00
A. Unique TensorFlower
290585044e Add ARM denormal flushing.
- Created a `DenormalState` class for easier comparisons.
- Modified denormal module to export `Get`/`SetDenormalState` for testing.
- Added ARM instructions for getting/setting denormal flushing bits.
- Added `denormal_test`.

PiperOrigin-RevId: 359327912
Change-Id: Id6de81872fadbd419a38056f5e5ea76d72b7d8a5
2021-02-24 11:30:25 -08:00
Chenkai Kuang
e95d1d2f3c Call CollectiveAllReduce._all_reduce in CollectiveAllReduce._batch_all_reduce to avoid code duplication.
This CL is a non-functional change, except that it fixes a small issue where reducing IndexedSlices with "mean" aggregation would raise an error.

PiperOrigin-RevId: 359327512
Change-Id: Ic21d6c23ded549de70e0ee126e65e47de1d3a06c
2021-02-24 11:25:40 -08:00
A. Unique TensorFlower
983024e740 Not yet public
PiperOrigin-RevId: 359324968
Change-Id: Iefbb1aa023790255bf2426f1a9d3709180c56651
2021-02-24 11:20:27 -08:00
Christian Sigg
fb09ff35e8 Remove 'delete' attribute from {third_party,tf}_http_archive and use patches instead.
Fix mirror.tensorflow.org check.

PiperOrigin-RevId: 359324710
Change-Id: I84fd011f999fa79dd890b9ad861532d5994b570a
2021-02-24 11:12:43 -08:00
Andrew Audibert
67c0025c18 [tf.data service] Fix uninitialized field asan error.
PiperOrigin-RevId: 359323353
Change-Id: I3b4ea262c2dc5d5cf2a7d68e4e6994671e3575a9
2021-02-24 11:07:02 -08:00
TensorFlower Gardener
a932fccd34 Merge pull request #47189 from GHGmc2:master
PiperOrigin-RevId: 359322097
Change-Id: Ie2a8d4a2664e47579fef47ba8e124a63286ad2f9
2021-02-24 11:01:34 -08:00
TensorFlower Gardener
0f5bbd1218 Merge pull request #46963 from Intel-tensorflow:ashraf/padding_list_conv
PiperOrigin-RevId: 359321073
Change-Id: I03a75f022a4ab0c5926acde9b38494ce776eda1c
2021-02-24 10:57:02 -08:00
A. Unique TensorFlower
bda067db73 Remove some usage of np.matrix.
PiperOrigin-RevId: 359319476
Change-Id: I549ce9e5c0e56d92e50fd8997a20911e79987c98
2021-02-24 10:49:46 -08:00
Yujing Zhang
686406b968 Disable fused_batch_norm_op_test on msan
PiperOrigin-RevId: 359319040
Change-Id: I66248f60efbad33d2e0764887dbbc643e6188bc8
2021-02-24 10:41:43 -08:00
Rahul Joshi
8aee7ba4d7 [XLA:GPU] Enable SPMD passes.
- Add SPMD related passes in the GPU compilation pipeline. This includes the domain
  isolator at the start of HLO optimizations, and domain remover, sharding propagation,
  and SPMD partitioner after a set of HLO optimizations.
- Change GpuLayoutAssignment to initialize channel constraints with a default
  constructed constraint (since collective communication ops with channel_id, i.e, cross
  host/module collective ops, do not require any specific layout constraint).

PiperOrigin-RevId: 359316087
Change-Id: If0e55db83eea3f5bc01caffed2cc46c2636f4f96
2021-02-24 10:29:50 -08:00
Frank Chen
9549bb1df8 Add temporary fix to include gcs_file_system builds in the TPU build
There is an implicit assumption here that Env::Default() is loaded after InitializeCreateGcsFileSystemFnPtr is called, but this seems to hold out in practice. We can also do it the other way around if it changes (e.g. just write out all the Env* variables and then have the initializer register GCS file system to them later too).

PiperOrigin-RevId: 359315295
Change-Id: If40bdf07d6d58d0dd354e8ec1405e79340aa1d2d
2021-02-24 10:24:26 -08:00
Geoffrey Martin-Noble
ff851e496d Lower integer matmuls to linalg
PiperOrigin-RevId: 359306495
Change-Id: I713c5de48639e08c7f5629af1fc9d30fa77af424
2021-02-24 09:51:19 -08:00
Hanhan Wang
82c7c6525e Add support for lowering mhlo.slice to subtensor.
PiperOrigin-RevId: 359297978
Change-Id: I56232e4a7ed778ad7d801904eba26853cf45144c
2021-02-24 09:09:12 -08:00
Smit Hinsu
2227b17c3e Define dependent dialects for tf-functional-to-executor-conversion pass
Defining dependent dialects for this pass as I am planning to use it in a separate pass pipeline. Most of the TensorFlow passes are not defining this and it doesn't create any issues as other passes in the pipeline declare the required dialects.

PiperOrigin-RevId: 359290671
Change-Id: Ie50f2ba527a619ad6554ff7765a0188a8ccd6d76
2021-02-24 08:30:39 -08:00
A. Unique TensorFlower
2a8990b386 Integrate LLVM at llvm/llvm-project@de40423c85
Updates LLVM usage to match
[de40423c8512](https://github.com/llvm/llvm-project/commit/de40423c8512)

PiperOrigin-RevId: 359280337
Change-Id: Id39b2e0d31f6914bda084c4b4f7e67161b3b7bab
2021-02-24 07:37:56 -08:00
A. Unique TensorFlower
847093df4d Use int to represent max image units per shader in Vulkan instead of uint32_t to be consistent with other APIs
PiperOrigin-RevId: 359279965
Change-Id: I8bbd5df3f2dd413478e075068f22eefc4a0c4d8b
2021-02-24 07:33:48 -08:00
A. Unique TensorFlower
994b4fc25a Make EvalOutput public.
PiperOrigin-RevId: 359258069
Change-Id: Ia4fd6e78fdb8e23ed4c8a00a14d61b1a9bb56c4c
2021-02-24 04:58:22 -08:00
A. Unique TensorFlower
b1de80b78f Update GraphDef version to 687.
PiperOrigin-RevId: 359229945
Change-Id: I232155bb78564727308036520b725a8ad829215b
2021-02-24 01:12:00 -08:00
A. Unique TensorFlower
c2e2b4f7ae compat: Update forward compatibility horizon to 2021-02-24
PiperOrigin-RevId: 359229943
Change-Id: I3ff405772ac4fe2b2433c3a5ca5cb38adb91de7e
2021-02-24 01:06:48 -08:00
Christian Sigg
27d920554e Internal change
PiperOrigin-RevId: 359221386
Change-Id: I2b8bf894e69d9e8a5c844148a2e05158ccc91399
2021-02-23 23:55:20 -08:00
Marcello Maggioni
dcdc6b2f90 [XLA] Correct typo in PartitionDotGroupOnContracting. NFC
PiperOrigin-RevId: 359214134
Change-Id: I013fef9a443b6d1db2108d0d37b03567296a251e
2021-02-23 22:46:58 -08:00
TensorFlower Gardener
089d2e1ba9 Merge pull request #46370 from Intel-tensorflow:dnn0x_cleanup_final
PiperOrigin-RevId: 359211518
Change-Id: I622cc1a20adb8e490eecd255b32db56b1ec8ddaf
2021-02-23 22:24:18 -08:00
A. Unique TensorFlower
65a8725672 Removed deprecated benchmark interface.
PiperOrigin-RevId: 359207365
Change-Id: Iaa12792c741d8154b6f1edb994c8ecd73caa3aae
2021-02-23 21:53:07 -08:00
Christian Sigg
0effd3dc59 Move Eigen repository macro to its own file.
PiperOrigin-RevId: 359206609
Change-Id: I6b1f2359b683c0c9d85b7fd50603460ff7690c30
2021-02-23 21:47:30 -08:00
Jaesung Chung
352a98d60d Implement Flex fallback for dynamic TensorList use cases
PiperOrigin-RevId: 359198873
Change-Id: Ia0e9bf54380d317d22b13d2394e784d0099d4be0
2021-02-23 20:51:30 -08:00
Renjie Liu
f083f1834c Consider ops implementing InferTypeOpInterface as supported in shape inference.
IsSupportedNonTFOp is used to check whether case is needed or the ops type can be refined. Previously it only consider TF dialects ops, but ops implementing InferTypeOpInterface also get refined. Expand check to include such ops.

PiperOrigin-RevId: 359197188
Change-Id: I44c6cb0d080a6bcb7e6d173a5c0e11b03aecc691
2021-02-23 20:37:35 -08:00
Yujing Zhang
5bb5bcc643 Disable data_service_ops_ft_test on tsan
PiperOrigin-RevId: 359197068
Change-Id: I95628c8d41ec5552c28c91ca4fdc2505fa40a26d
2021-02-23 20:31:55 -08:00
A. Unique TensorFlower
0aa8a997d1 Update minimum iOS test version to 11.4
PiperOrigin-RevId: 359188509
Change-Id: I93dc8f49d764eebe090e5d91b805c74f278326b4
2021-02-23 19:28:04 -08:00
Qiao Zhang
3505d7dc7d Remove unneeded pybind methods on TpuDevice.
PiperOrigin-RevId: 359183644
Change-Id: I03f27bbd9336b771c4d3390f946819cce1d6d753
2021-02-23 18:48:31 -08:00
Peter Hawkins
dc4d330cfe [XLA] Fix underflow in norm calculation in Householder reflection for complex inputs.
If a complex value's squared norm was denormal but had a non-zero imaginary part, the Householder reflection computation could yield NaNs. By using a more accurate norm, we can avoid the underflow in this case.

PiperOrigin-RevId: 359180409
Change-Id: I2b6963800da551ab50b4e3e52a06cf92d75c0ee9
2021-02-23 18:24:36 -08:00
Maozhou, Ge
8e5924dc70 fix code style 2021-02-24 10:19:21 +08:00
George Karpenkov
ea6f79938f [XLA:GPU] Allow using ChannelLayoutConstraints for XLA:GPU
PiperOrigin-RevId: 359178668
Change-Id: Iac7816ca263e6f0283f59f02d4f0844a76691f77
2021-02-23 18:14:58 -08:00
A. Unique TensorFlower
2b2e7b64ca Add optimization to replace Pack with multiple identical inputs with Tile.
PiperOrigin-RevId: 359177932
Change-Id: I6e129796fb3712b9d26a408e6200fdc6105aa44d
2021-02-23 18:09:18 -08:00
George Karpenkov
c5795aa878 [TF2XLA] Helper method for XlaBuilder to conver the constructed HLO proto to string
PiperOrigin-RevId: 359170517
Change-Id: Iabf5d10e62e439996fee28b72c8c0ae60a74fc3f
2021-02-23 17:24:28 -08:00
Jared Duke
4588c1fec2 Test coverage infra change
PiperOrigin-RevId: 359162232
Change-Id: I7b441454b1850061dc0efce6727e87709fb89a88
2021-02-23 16:35:29 -08:00
Ruoxin Sang
b5845deea6 Make sure Keras work with subclass of TPUStrategy instances, like Sonnet TPUReplicator.
PiperOrigin-RevId: 359160614
Change-Id: I0f84d9fd3eaf9a2da4a8602044c513950920f0de
2021-02-23 16:26:40 -08:00
Peng Wang
90f2c20b48 Supports calling tf.random.Generator's from_*, reset_from_* and split methods within tf.function, with symbolic tensors.
PiperOrigin-RevId: 359157911
Change-Id: I4d7faa214474d8e30b0f9055d40a9255758d663f
2021-02-23 16:14:40 -08:00
Ken Franko
fe588d3a3d Add test with nested tf.function and outside compilation.
PiperOrigin-RevId: 359156369
Change-Id: I083557efbd5d1dc7642244d666361b12e21960f7
2021-02-23 16:09:53 -08:00
A. Unique TensorFlower
2edf9157cf Add optimization to replace Pack with multiple identical inputs with Tile.
PiperOrigin-RevId: 359155136
Change-Id: I88cec5fc9a4b43e0cfe6f65ac87e521d486940ba
2021-02-23 16:03:56 -08:00
Daniel Ellis
b8d17793a7 Don't redundantly prefix metric names for multi-output models.
For multi-output models, we prefix metric names with their associated output names to disambiguate / uniqify them.  When these models are repeatedly saved and loaded, this prefixing repeats as well, leading to long metrics names such as "head_0_head_0_head_0_accuracy", where "head_0" is an output name.

PiperOrigin-RevId: 359151924
Change-Id: I509ea27a7d91446c3893d13d73818f857705ef5f
2021-02-23 15:54:17 -08:00
Andrew Audibert
0fe5e54d5a [tf.data] Report "unavailable" instead of -1 for unavailable traceme values.
xprof will display -1 as "18446744073709551615", which can be confusing.

PiperOrigin-RevId: 359150215
Change-Id: I656be876712da5f7543a65c4e968e0cac3a70981
2021-02-23 15:48:39 -08:00
Allen Wang
e67e11cfc0 Change tpu_model_server_initializer to depend on tpu_api_dlsym_initializer .
PiperOrigin-RevId: 359150007
Change-Id: Ib0930979b9df9c08c67fbca80afd35ea13927233
2021-02-23 15:43:52 -08:00
Zhuoran Liu
0adb077c42 Introducing TPU Inference Converter
PiperOrigin-RevId: 359149247
Change-Id: Iea83c558bf1b2a9d418e3bb3d4c3d329f6668244
2021-02-23 15:38:59 -08:00
Yujing Zhang
33725f3c93 Disable c_api_test on TensorFlowMultiGpu
PiperOrigin-RevId: 359148785
Change-Id: I9f1c773ff4cc9f38a2cb32b79fb4b41a443625cf
2021-02-23 15:32:45 -08:00
Berkin Ilbeyi
b303673e23 [XLA] Bitcasts should define values when propagating memory spaces.
Otherwise we can get inconsistent memory propagations. Consider this example:

fused_comp {
  p = s32[1]{0} parameter(0)
  ...
  ROOT b = s32[1]{0} bitcast(p)
}

fusion = s32[1]{0:S(0)} fusion(s32[1]{0:S(1)} foo), fused_computation=fused_comp

If bitcast doesn't define a value, then either fusion operand and parameter or
fusion root and output would disagree about the memory space.

PiperOrigin-RevId: 359147477
Change-Id: Ie785cdf5cc0baeabe4af0f0ec1882592c86d7254
2021-02-23 15:27:16 -08:00
Monica Song
5931dc3cb3 Delete tracking of model's optimizer if include_optimizer=False when saving.
PiperOrigin-RevId: 359145092
Change-Id: Id337879de49ba9197876c487e4ea7c76318d8959
2021-02-23 15:19:29 -08:00
Jean-Baptiste Lespiau
00cf670ff6 Document more explicitly the order of the arguments.
PiperOrigin-RevId: 359137661
Change-Id: Ic8001be7959c60df2fa83b5f0933e04d54fbb557
2021-02-23 14:56:13 -08:00
TensorFlower Gardener
51dff99b9a Merge pull request #47327 from advaitjain:renode-docs
PiperOrigin-RevId: 359136928
Change-Id: Ic5388317aa7957ba2411385ddaa867b387bee857
2021-02-23 14:51:10 -08:00