Skip to content

Commit 6a03dff

Browse files
committed
[PyTorch] Remove unused sstream/string includes from c10/macros/Macros.h
Pull Request resolved: #83353 Nothing in the rest of the header seems to use these. ghstack-source-id: 164665336 Differential Revision: [D38672680](https://our.internmc.facebook.com/intern/diff/D38672680/)
1 parent d4bd88b commit 6a03dff

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

aten/src/ATen/Parallel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <ATen/Config.h>
33
#include <c10/macros/Macros.h>
44
#include <functional>
5+
#include <string>
56

67
namespace at {
78

c10/macros/Macros.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ using namespace c10::hip;
243243
#define C10_FALLTHROUGH
244244
#endif
245245

246-
#include <sstream>
247-
#include <string>
246+
#include <cstdint>
248247

249248
#ifdef __HIPCC__
250249
// Unlike CUDA, HIP requires a HIP header to be included for __host__ to work.

c10/util/SmallVector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <c10/util/SmallVector.h>
1818
#include <cstdint>
1919
#include <stdexcept>
20+
#include <string>
2021
using namespace c10;
2122

2223
// Check that no bytes are wasted and everything is well-aligned.

c10/util/SmallVector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <limits>
3636
#include <memory>
3737
#include <new>
38+
#include <ostream>
3839
#include <type_traits>
3940
#include <utility>
4041

0 commit comments

Comments
 (0)