Remove some unnecessary <iostream> includes from headers (#106914)

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/106914
Approved by: https://github.com/lezcano
This commit is contained in:
Peter Bell
2023-08-17 19:17:33 +01:00
committed by PyTorch MergeBot
parent eee2f57257
commit 60936e4c29
57 changed files with 53 additions and 47 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>