[RELAND] Remove some unnecessary <iostream> includes from headers (#108150)

In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/108150
Approved by: https://github.com/albanD, https://github.com/malfet
ghstack dependencies: #108149
This commit is contained in:
Peter Bell
2023-09-20 15:53:09 +01:00
committed by PyTorch MergeBot
parent 05b3a4dd88
commit 7ce69d5dbe
56 changed files with 52 additions and 46 deletions

View File

@ -28,6 +28,7 @@
#include <torch/csrc/jit/runtime/vararg_functions.h>
#include <algorithm>
#include <cstdint>
#include <iostream>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/NativeFunctions.h>