Skip to content

Conversation

@copybara-service
Copy link

Remove xla::AlignedAlloc and migrate callers to tsl::port::AlignedAllocRAII.

This change deprecates and removes xla::AlignedAlloc and its associated FreeDeleter, replacing usages with a new tsl::port::AlignedAllocRAII function in tsl/platform/mem.h. The xla::IsPowerOf2 utility is also updated to use absl::has_single_bit.

…AllocRAII`.

This change deprecates and removes `xla::AlignedAlloc` and its associated `FreeDeleter`, replacing usages with a new `tsl::port::AlignedAllocRAII` function in `tsl/platform/mem.h`. The `xla::IsPowerOf2` utility is also updated to use `absl::has_single_bit`.

PiperOrigin-RevId: 831546053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant