pytorch
33f15134 - Add `lazy_clone_storage` to create COW storages (#110192)

Commit
1 year ago
Add `lazy_clone_storage` to create COW storages (#110192) This PR relands #110022 but accounts for the changes in #110191. Also, the function for creating COW storages is called `lazy_clone_storage` in this PR, instead of `try_ensure` NOTE: COW storages do not actually copy on write yet, they just have the COW deleter and deleter context applied to them Part of #109833 Differential Revision: [D50265134](https://our.internmc.facebook.com/intern/diff/D50265134) Pull Request resolved: https://github.com/pytorch/pytorch/pull/110192 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading