mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Setting device could be expensive, especially when a debugger is present. We should check the device are different before we set. cc: ptrblck Pull Request resolved: https://github.com/pytorch/pytorch/pull/35438 Differential Revision: D20664084 Pulled By: ngimel fbshipit-source-id: 2440b4c9d96c41b4a19d5b1e8e1756fa40f090f0 |
||
|---|---|---|
| .. | ||
| cuda_cmake_macros.h.in | ||
| CUDAGuardImpl.cpp | ||
| CUDAGuardImpl.h | ||
| CUDATest.cpp | ||
| CUDATest.h | ||