Skip to content

Commit

Permalink
[CustomDevice] fix device guard (PaddlePaddle#55351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny1996 authored and cqulilujia committed Jul 24, 2023
1 parent f578fe7 commit 6c84447
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions paddle/phi/backends/device_guard.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ class DeviceGuard {
}
}

inline ~DeviceGuard() {
if (cur_id != prev_id) {
DeviceManager::SetDevice(dev_type_, prev_id);
}
}

DeviceGuard(const DeviceGuard& o) = delete;
DeviceGuard& operator=(const DeviceGuard& o) = delete;

Expand Down

0 comments on commit 6c84447

Please sign in to comment.