pytorch/c10
Scott Wolchok 0a66d5b325 [PyTorch] Remove unnecessary iostream includes in headers (#61500)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61500

libstdc++ defines a static variable called `std::__ioinit` in iostream that adds global constructor size overhead to each translation that includes iostream. To reduce the size overhead from that, we can often include ostream instead.
ghstack-source-id: 136163529

Test Plan: buildsizebot some mobile apps

Reviewed By: dhruvbird

Differential Revision: D29648016

fbshipit-source-id: 9c3139712c71248513cc5032d21e77f3ecbae8fe
2021-08-19 18:54:51 -07:00
..
benchmark Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
core [PyTorch] Remove unnecessary iostream includes in headers (#61500) 2021-08-19 18:54:51 -07:00
cuda [ROCm] Update HIP_VERSION to TORCH_HIP_VERSION (#62786) 2021-08-13 15:00:43 -07:00
hip
macros Fix CUDA_KERNEL_ASSERT ambiguous symbol in NDEBUG mode (#62527) 2021-08-11 01:10:09 -07:00
mobile Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
test support optional comparisons with different but comparable types (#62890) 2021-08-18 21:40:38 -07:00
util [PyTorch] Remove unnecessary iostream includes in headers (#61500) 2021-08-19 18:54:51 -07:00
CMakeLists.txt Combine backtrace print into one string to avoid interleaving. (#56961) 2021-05-12 15:52:05 -07:00