Commit Graph

154724 Commits

Author SHA1 Message Date
A. Unique TensorFlower
f91457f258 Update rules_python: 0.25.0 -> 0.26.0.
PiperOrigin-RevId: 571910358
2023-10-09 05:34:50 -07:00
A. Unique TensorFlower
183ea61391 Internal Code Change
PiperOrigin-RevId: 571891742
2023-10-09 03:51:32 -07:00
A. Unique TensorFlower
a859444925 Update TFRT dependency to use revision
30adf6e269.

PiperOrigin-RevId: 571874457
2023-10-09 02:21:44 -07:00
A. Unique TensorFlower
93774d54c4 compat: Update forward compatibility horizon to 2023-10-09
PiperOrigin-RevId: 571871706
2023-10-09 02:12:42 -07:00
A. Unique TensorFlower
526851e85d Update GraphDef version to 1644.
PiperOrigin-RevId: 571871679
2023-10-09 02:06:17 -07:00
Jane Liu
4167d2eea8 PR #6150: Correction of CudaAsyncAllocator, not BFCAllocator
Imported from GitHub PR https://github.com/openxla/xla/pull/6150

Fix the comments and logs for CudaAsyncAllocator, not BFCAllocator which is a synchronized cuda memory allocator.
Copybara import of the project:

--
5cfd652cc759c28d6f03d42e82d92bf19d0c558a by Jane Liu <janeliu@nvidia.com>:

Correction of CudaAsyncAllocator, not the BFCAllocator

Merging this change closes #6150

PiperOrigin-RevId: 571868157
2023-10-09 01:52:19 -07:00
A. Unique TensorFlower
9c17ff9d1c Integrate LLVM at llvm/llvm-project@2a1f1b5fde
Updates LLVM usage to match
[2a1f1b5fde0a](https://github.com/llvm/llvm-project/commit/2a1f1b5fde0a)

PiperOrigin-RevId: 571867638
2023-10-09 01:45:38 -07:00
A. Unique TensorFlower
df0af2cd9c Internal Code Change
PiperOrigin-RevId: 571866788
2023-10-09 01:39:11 -07:00
TensorFlower Gardener
abbbcb5020 Merge pull request #61990 from Tessil:reshape_with_dynamic_dims_fix
PiperOrigin-RevId: 571824268
2023-10-08 21:39:55 -07:00
TensorFlower Gardener
3466088713 Merge pull request #61998 from tensorflow:tilakrayal-patch-1
PiperOrigin-RevId: 571823284
2023-10-08 21:30:32 -07:00
TensorFlower Gardener
fe9cdf5d8b Merge pull request #61941 from ROCmSoftwarePlatform:hipblas_lt_integration2
PiperOrigin-RevId: 571822200
2023-10-08 21:20:34 -07:00
TensorFlower Gardener
75d8f13cbf Merge pull request #61738 from Tai78641:pr_fix_broadcast_to_lowering
PiperOrigin-RevId: 571820803
2023-10-08 21:08:40 -07:00
A. Unique TensorFlower
75366c3996 Runs requirements updater to fix nightly Python 3.11 error.
Error is caused by pypi_wrapt hash mismatch. See https://github.com/tensorflow/tflite-micro/issues/2264.

PiperOrigin-RevId: 571775303
2023-10-08 14:16:19 -07:00
Quentin Khan
fc62152373 Fix ReduceWindow kernel output shape computation.
PiperOrigin-RevId: 571754187
2023-10-08 10:42:06 -07:00
A. Unique TensorFlower
b72d2fd925 compat: Update forward compatibility horizon to 2023-10-08
PiperOrigin-RevId: 571701204
2023-10-08 02:13:41 -07:00
A. Unique TensorFlower
9c4a2d1c66 Update GraphDef version to 1643.
PiperOrigin-RevId: 571701196
2023-10-08 02:06:45 -07:00
A. Unique TensorFlower
4039065c9b Update TFRT dependency to use revision
e8f4445c11.

PiperOrigin-RevId: 571669755
2023-10-07 21:54:48 -07:00
A. Unique TensorFlower
34821bdb96 Use tf2xla implementation of Concat_v2 op for MLIR bridge
PiperOrigin-RevId: 571598203
2023-10-07 10:50:04 -07:00
A. Unique TensorFlower
233ad03685 Add transpose to the mhlo->tfl path
PiperOrigin-RevId: 571593152
2023-10-07 10:17:51 -07:00
A. Unique TensorFlower
deec165483 Update GraphDef version to 1642.
PiperOrigin-RevId: 571537775
2023-10-07 02:10:09 -07:00
A. Unique TensorFlower
5dd7a1ef02 compat: Update forward compatibility horizon to 2023-10-07
PiperOrigin-RevId: 571537774
2023-10-07 02:06:38 -07:00
Christian Sigg
a47d18e3f3 [TSL] Remove some Windows- and Darwinn-specific GPU code.
PiperOrigin-RevId: 571535260
2023-10-07 01:46:48 -07:00
A. Unique TensorFlower
333145db59 [hlo_evaluator] Don't create blank, zero-populated Literals for tuples
When evaluating Tuple(), create a blank Literal for the destination that is populated with
kUndetermined.

We already copy in all known leaves, so all this does is avoid us creating blank leaf Pieces,
which is incredibly important when dealing with large programs pre-sharding. Also note that
we'd instantaneously throw the blank pieces all away...

PiperOrigin-RevId: 571532410
2023-10-07 01:21:31 -07:00
Christian Sigg
78de18d6e2 [XLA:GPU] Remove some Windows- and Darwinn-specific code.
PiperOrigin-RevId: 571523075
2023-10-07 00:09:52 -07:00
A. Unique TensorFlower
0408e4e42a Avoid UB when casting from float to int. casting ULONG_MAX to float creates a value that is outside of the range of unsigned long (round to nearest). Casting that to unsigned long results in UB.
PiperOrigin-RevId: 571508474
2023-10-06 21:59:36 -07:00
Yang Chen
e4485c98ea #tf-data-service Add a separate to the temp files to make them easier to parse.
PiperOrigin-RevId: 571466104
2023-10-06 16:58:46 -07:00
A. Unique TensorFlower
48ae913f1b Handle the case when the operand to an optimziation barrier HLO is a tuple.
PiperOrigin-RevId: 571464553
2023-10-06 16:46:03 -07:00
A. Unique TensorFlower
a09d7535f5 Fix a typo in array_impl_test_lib: reshared -> resharded.
PiperOrigin-RevId: 571452967
2023-10-06 15:49:25 -07:00
Clive Verghese
2674ecf8c8 Create ProfilerStatusHelper or profiler.
PiperOrigin-RevId: 571451461
2023-10-06 15:43:04 -07:00
A. Unique TensorFlower
d3567a27fc Allows grappler.tf_optimizer.OptimizeGraph to process MetaGraphDefs larger than 2 GiB.
With larger models becoming more prevalent, it is not inconceivable to run into `MetaGraphDef`s larger than 2 GiB. Protobufs larger than 2 GiB cannot be serialized, making these models impossible to process. This commit removes the `SerializeToString` function, and uses pybind to pass the `MetaGraphDef` protobuf from Python to C++. By default, pybind also serializes the protobuf when passing. Using `//third_party/pybind11_protobuf:native_proto_caster` configures pybind to not do any serialization.

PiperOrigin-RevId: 571446639
2023-10-06 15:22:37 -07:00
Matthias Kramm
1b76764ce8 Emit an error message if we fail the embedding_program_key pass verification.
PiperOrigin-RevId: 571442001
2023-10-06 15:03:05 -07:00
Eugene Zhulenev
c431e43017 [xla] Make autotune_results_proto header only by default
PiperOrigin-RevId: 571434928
2023-10-06 14:34:42 -07:00
Juan Martinez Castellanos
952b26c17d Split framework target into single-source targets.
PiperOrigin-RevId: 571433450
2023-10-06 14:28:12 -07:00
Matthias Kramm
ff37a11772 Add op for writing statistical information about minibatches, for FDO.
PiperOrigin-RevId: 571431478
2023-10-06 14:20:20 -07:00
Bixia Zheng
8030c0de05 [xla] Remove the explicit dependence added from RecvDone to Send.
This dependence is correct for unpipelined Send and Recv sequences but not for
pipelined Send and Recv sequences. We now expect a backend to add control
dependence to represent the intended ordering of Send and Recv, as the GPU HLO
scheduler does, via P2PSchedulePreparation pass.

PiperOrigin-RevId: 571430708
2023-10-06 14:14:32 -07:00
A. Unique TensorFlower
5428209b50 For aarch64, use empty kTargetCpuForHost string
The string "aarch64" does not appear in the list of valid CPUs in
AArch64.td, making it not a valid processor in
llvm/lib/MC/MCSubtargetInfo.cpp:getFeatures, which reports an
"unrecognized CPU" error, ultimately hitting an llvm_unreachable
assertion during code lowering when running tests such as
cpu_eigen_dot_operation_test. Log of erroneous behavior below.

This is very similar to the x86_64 machine description, which also
does not have a true "x86_64" processor listed. Using the
empty string as the cpu type gets translated to "generic", which is
handled properly by the rest of the infra.

Match that behavior for aarch64, which allows the test to pass properly.

Failing log for cpu_eigen_dot_operation test when run on an aarch64 host:
"""
[==========] Running 6 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 6 tests from CpuEigenDotOperationTestInstantiation/CpuEigenDotOperationTest
[ RUN      ] CpuEigenDotOperationTestInstantiation/CpuEigenDotOperationTest.SimpleDotOp/F16
'aarch64' is not a recognized processor for this target (ignoring processor)
'aarch64' is not a recognized processor for this target (ignoring processor)
'aarch64' is not a recognized processor for this target (ignoring processor)
'aarch64' is not a recognized processor for this target (ignoring processor)
'aarch64' is not a recognized processor for this target (ignoring processor)
'aarch64' is not a recognized processor for this target (ignoring processor)
Don't know how to custom expand this
UNREACHABLE executed at llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:24052!
"""

PiperOrigin-RevId: 571415910
2023-10-06 13:20:13 -07:00
Gabriel Rasskin
dc4d70f61f Propagate stack traces when creating a GraphExecutionState. Constructing a FunctionLibraryDefinition was previously throwing away stack traces. Extract them from the GraphDef, and store them in the FunctionLibraryDefinition.
PiperOrigin-RevId: 571415410
2023-10-06 13:12:01 -07:00
Keith Smiley
45003ffedf PR #56789: [iOS] Add initial xcframework bazel support
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/56789

This adds xcframework support for 2 of the core libraries now that the
public bazel rules support producing static framework based
xcframeworks. This forks the hide symbols script to be compatible with
operating on multiple frameworks inside a given xcframework. Currently
this rules feature requires bazel 6.x rolling releases because it uses a
new API from the C++ starlark migration. That release should be public
in the next few months, for now this doesn't affect 5.x because the new
targets are manual.
Copybara import of the project:

--
5e90cde3004bd8bc38ab8853f01dc4b2fbe91164 by Keith Smiley <keithbsmiley@gmail.com>:

[iOS] Add initial xcframework bazel support

This adds xcframework support for 2 of the core libraries now that the
public bazel rules support producing static framework based
xcframeworks. This forks the hide symbols script to be compatible with
operating on multiple frameworks inside a given xcframework. Currently
this rules feature requires bazel 6.x rolling releases because it uses a
new API from the C++ starlark migration. That release should be public
in the next few months, for now this doesn't affect 5.x because the new
targets are manual.

Merging this change closes #56789

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/56789 from keith:ks/ios-add-initial-xcframework-bazel-support 5e90cde3004bd8bc38ab8853f01dc4b2fbe91164
PiperOrigin-RevId: 571405194
2023-10-06 12:31:42 -07:00
Peter Hawkins
dbcfdeb64c Add an environment variable PJRT_NPROC that may be used to set threadpool sizes.
If both PJRT_NPROC and NPROC are set, prefer PJRT_NPROC. This allows a PJRT-specific NPROC override.

PiperOrigin-RevId: 571400733
2023-10-06 12:26:20 -07:00
A. Unique TensorFlower
8ab9107a3c [XLA] Fix minor typo.
PiperOrigin-RevId: 571397879
2023-10-06 12:21:53 -07:00
Pat Notz
2ce1d3301d Make embedding preprocessing collective gathers stateless
PiperOrigin-RevId: 571397247
2023-10-06 12:16:30 -07:00
A. Unique TensorFlower
c6a0d64b99 Add data to tf_python_pybind_extension and tf_python_pybind_extension_opensource.
PiperOrigin-RevId: 571393106
2023-10-06 12:08:13 -07:00
A. Unique TensorFlower
b65cadbb23 Skip test for failing kokoro mac test
PiperOrigin-RevId: 571392275
2023-10-06 11:57:37 -07:00
Nitin Srinivasan
f36d7785e0 Add CI configs for macOS Arm64 builds
PiperOrigin-RevId: 571390990
2023-10-06 11:45:51 -07:00
pizzud
3d3d3af519 [XLA:GPU] Add a hook to enable uploading HLO to internal infrastructure.
PiperOrigin-RevId: 571389810
2023-10-06 11:39:40 -07:00
A. Unique TensorFlower
78fc055564 Skip TPU nominal bridge for inference graph
PiperOrigin-RevId: 571388494
2023-10-06 11:29:29 -07:00
Michael Hudgins
3b3a3946cc Create CI env file for new nightly ARM64 experimental build
PiperOrigin-RevId: 571384702
2023-10-06 11:13:39 -07:00
Jim Lin
478ef7c6f8 No public description
PiperOrigin-RevId: 571364597
2023-10-06 10:20:50 -07:00
A. Unique TensorFlower
14889277cb Skip TPU V1 Compat bridge for inference graph outside execution of TPUPartitionedCall op
PiperOrigin-RevId: 571364374
2023-10-06 10:11:14 -07:00
Juan Martinez Castellanos
163fc8bfba Split client target into single-source targets.
PiperOrigin-RevId: 571364191
2023-10-06 10:03:07 -07:00