Skip to content

[pull] master from tensorflow:master#1982

Merged
pull[bot] merged 20 commits into
GesuBackups:masterfrom
tensorflow:master
Jun 30, 2026
Merged

[pull] master from tensorflow:master#1982
pull[bot] merged 20 commits into
GesuBackups:masterfrom
tensorflow:master

Conversation

@pull

@pull pull Bot commented Jun 30, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tensorflower-gardener and others added 20 commits June 29, 2026 12:37
…lete

* Add AlignedNew and AlignedDelete to tsl::port and implement them across Linux, default, and Windows ports using C++17 aligned operator new/delete.
* Add AllocateRawAlignedNew and DeallocateRawAlignedNew virtual overloads to Allocator and override them in CPUAllocator.
* Update TypedAllocator to call AllocateRawAlignedNew and DeallocateRawAlignedNew.

PiperOrigin-RevId: 939990435
  - Replace custom implementations of "ASSIGN_OR_RETURN" and "RETURN_IF_ERROR" with absl's standard implementations
  - Define with flag = 1 to define shortened aliases to absl's implementations, prefixed with ABSL

PiperOrigin-RevId: 940003092
PiperOrigin-RevId: 940007916
Free the default 0-size `node->temporaries` array before allocating and
assigning a new one in `GetRequiredTemporaries`. Previously, this 0-size
array (allocated in `Subgraph::AddNodeWithParameters`) was overwritten
without being freed, leaking 16 bytes (on arm64) per delegated partition.

This affects both `metal_delegate.mm` and `delegate.cc`.

PiperOrigin-RevId: 940012449
Remove obsolete code from xla_tpu_device.

PiperOrigin-RevId: 940013090
This header is causing build problems on various platforms.

PiperOrigin-RevId: 940058593
…inputs

When tf.raw_ops.LRN or LRNGrad is compiled with XLA for float16 or bfloat16 inputs, compilation fails with an internal error due to mixed precision operands in binary operations (e.g. multiply). This happens because attribute scalar constants (bias_, alpha_, beta_) were created using xla::ConstantR0<float>, which hardcodes F32 precision.

This change replaces xla::ConstantR0<float> with XlaHelpers::FloatLiteral(builder, input_type(0), ...) in LRNOp::Compile and LRNGradOp::Compile so that scalar attribute constants match the precision of the input tensor.

PiperOrigin-RevId: 940067706
…w progress.

This change introduces two warning mechanisms in HloRematerialization:
1.  A warning is logged if the rematerialization pass takes longer than 3 minutes.
2.  During the PeakPriority algorithm, if a subpass reduces peak memory by less than 1% while still being over the memory limit, a warning is logged. This helps identify cases where rematerialization is making very slow progress.

PiperOrigin-RevId: 940075135
…when exporting while op

StableHLO allows implicit references to values defined outside of a while loop, which gets appended as explicit operands while being converted to HLO. This updates the original value of the result of such a while loop accordingly by appending elments of the original values of the new operands to the existing original value.

PiperOrigin-RevId: 940075435
…t heap buffer overflow and out-of-bounds read.

PiperOrigin-RevId: 940093007
Remove unused TPU compile proto dependencies from tf2xla APIs.

The `tpu_compile.proto.h` and related build targets are no longer required by the tf2xla v1 and v2 APIs, so they are being removed to clean up dependencies.

PiperOrigin-RevId: 940095382
This new workflow uses `addlicense` to ensure that all relevant source files in the TensorFlow repository have the correct Apache 2.0 license header. It runs on pull requests and pushes to the main branch, skipping files in `third_party` and various non-source file types.

Additionally, Apache 2.0 license headers were added to the following files:

- `tensorflow/python/framework/fast_tensor_util.pyx`
- `tensorflow/tools/pip_package/xla_build/CMakeLists.txt.oss`
- `tensorflow/tools/pip_package/xla_build/pip_test/CMakeLists.txt`

PiperOrigin-RevId: 940101317
PiperOrigin-RevId: 940102495
Extract the logic for updating the value set of a single operand of an async-start instruction into a new helper method, UpdateAsyncChainOperandValueSet. This improves modularity and allows for potential reuse of this logic.

PiperOrigin-RevId: 940104470
The chlo.topk operation now includes an optional is_stable attribute, defaulting to true. This attribute controls whether the sort performed by topk is stable. The legalization to stablehlo.sort now propagates this is_stable value.

PiperOrigin-RevId: 940120099
Updates LLVM usage to match
[72c5132a2e52](llvm/llvm-project@72c5132a2e52)

PiperOrigin-RevId: 940131349
…k and downcasts.

PiperOrigin-RevId: 940132064
@pull pull Bot locked and limited conversation to collaborators Jun 30, 2026
@pull pull Bot added the ⤵️ pull label Jun 30, 2026
@pull pull Bot merged commit dc3e842 into GesuBackups:master Jun 30, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants