pytorch/c10
Scott Wolchok 6e90572bb9 [PyTorch] Don't create a new Storage in FreeMemory unnecessarily
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79573

No reason to go through an extra heap allocation.

Differential Revision: [D37157595](https://our.internmc.facebook.com/intern/diff/D37157595/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D37157595/)!

Approved by: https://github.com/ezyang
2022-06-17 00:46:16 +00:00
..
benchmark [PyTorch] add intrusive_ptr exclusive ownership benchmark 2022-06-10 19:26:28 +00:00
core [PyTorch] Don't create a new Storage in FreeMemory unnecessarily 2022-06-17 00:46:16 +00:00
cuda Pool cudaEvents in CUDACachingAllocator (#78279) 2022-06-07 18:26:45 +00:00
hip
macros [PyTorch] Stack-allocate boxed args for RecordFunction 2022-05-24 17:06:40 +00:00
mobile
test turn on -Werror=unused-variable in our Bazel CPU build 2022-06-11 02:46:34 +00:00
util Revert "Enable dim=None for torch.sum (#75845)" 2022-06-16 22:01:41 +00:00
BUCK.oss rename BUILD.buck to BUCK.oss (#78792) 2022-06-03 07:23:16 +00:00
BUILD.bazel extract //c10 to common build system (#71411) 2022-03-02 11:33:22 +00:00
build.bzl extract //c10 to common build system (#71411) 2022-03-02 11:33:22 +00:00
c10_defs.bzl Add all bzl files per D36874458 2022-06-06 09:40:19 -07:00
CMakeLists.txt [c10]Delete non-existent paths (#79187) 2022-06-09 18:06:42 +00:00
defs_hip.bzl Add all bzl files per D36874458 2022-06-06 09:40:19 -07:00
ovrsource_defs.bzl Add all bzl files per D36874458 2022-06-06 09:40:19 -07:00