pytorch
ea64c90e - Add recordDataPtrOnStream to DeviceGuardImplInterface (#57047)

Commit
3 years ago
Add recordDataPtrOnStream to DeviceGuardImplInterface (#57047) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57047 We intend to merge CUDAFuture into ivalue::Future by using DeviceGuardImplInterface to avoid explicitly referring to CUDA. For that we need to add two methods to DeviceGuardImplInterface. In this PR, we add a method to record a DataPtr onto a stream with the caching allocator. ghstack-source-id: 127713135 (Note: this ignores all push blocking failures!) Test Plan: Used later in this stack Reviewed By: ezyang Differential Revision: D28029161 fbshipit-source-id: ff337ab8ccc98437b5594b2f263476baa1ae93e7
Author
lw lw
Parents
Loading