Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 657888564
  • Loading branch information
tensorflower-gardener authored and copybara-github committed Jul 31, 2024
1 parent d73be28 commit 2b72d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class MarkEventReadyOnExit {

MarkEventReadyOnExit(const MarkEventReadyOnExit&) = delete;
MarkEventReadyOnExit& operator=(const MarkEventReadyOnExit&) = delete;
MarkEventReadyOnExit(MarkEventReadyOnExit&&) = default;
MarkEventReadyOnExit& operator=(MarkEventReadyOnExit&&) = default;
MarkEventReadyOnExit(MarkEventReadyOnExit&&) noexcept = default;
MarkEventReadyOnExit& operator=(MarkEventReadyOnExit&&) noexcept = default;

~MarkEventReadyOnExit() {
if (event_) event_.SetStateConcrete();
Expand Down Expand Up @@ -163,7 +163,7 @@ class AbstractTfrtCpuBuffer : public PjRtBuffer {
DonationTransaction(const DonationTransaction&) = delete;
DonationTransaction& operator=(const DonationTransaction&) = delete;
DonationTransaction(DonationTransaction&&) = default;
DonationTransaction& operator=(DonationTransaction&& other) {
DonationTransaction& operator=(DonationTransaction&& other) noexcept {
Abort();

buffer_ = other.buffer_;
Expand Down
5 changes: 3 additions & 2 deletions xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ class TrackedTfrtCpuDeviceBuffer {
absl::AnyInvocable<void() &&> on_delete_callback = nullptr);

// Move-only.
TrackedTfrtCpuDeviceBuffer(TrackedTfrtCpuDeviceBuffer&&) = default;
TrackedTfrtCpuDeviceBuffer& operator=(TrackedTfrtCpuDeviceBuffer&&) = default;
TrackedTfrtCpuDeviceBuffer(TrackedTfrtCpuDeviceBuffer&&) noexcept = default;
TrackedTfrtCpuDeviceBuffer& operator=(TrackedTfrtCpuDeviceBuffer&&) noexcept =
default;
TrackedTfrtCpuDeviceBuffer(const TrackedTfrtCpuDeviceBuffer&) = delete;
TrackedTfrtCpuDeviceBuffer& operator=(const TrackedTfrtCpuDeviceBuffer&) =
delete;
Expand Down

0 comments on commit 2b72d4f

Please sign in to comment.