File tree 7 files changed +52
-0
lines changed
7 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 13
13
#include < array>
14
14
#include < bitset>
15
15
16
+ C10_CLANG_DIAGNOSTIC_PUSH ()
17
+ #if C10_CLANG_HAS_WARNING("-Wshorten-64-to-32")
18
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wshorten-64-to-32" )
19
+ #endif
20
+ #if C10_CLANG_HAS_WARNING("-Wdeprecated-copy-dtor")
21
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wdeprecated-copy-dtor" )
22
+ #endif
23
+
16
24
namespace at {
17
25
class Tensor ;
18
26
class OptionalTensorRef ;
@@ -795,3 +803,5 @@ struct TORCH_API SplitUntil32Bit {
795
803
};
796
804
797
805
} // namespace at
806
+
807
+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 4
4
#include < c10/core/TensorOptions.h>
5
5
#include < ATen/core/Dimname.h>
6
6
7
+ C10_CLANG_DIAGNOSTIC_PUSH ()
8
+ #if C10_CLANG_HAS_WARNING("-Wdeprecated-copy-dtor")
9
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wdeprecated-copy-dtor" )
10
+ #endif
11
+
7
12
namespace at {
8
13
9
14
class Tensor ;
@@ -74,3 +79,5 @@ struct TORCH_API MetaBase {
74
79
} // namespace impl
75
80
76
81
} // namespace at
82
+
83
+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 38
38
#include < ATen/core/ivalue.h>
39
39
#endif
40
40
41
+ C10_CLANG_DIAGNOSTIC_PUSH ()
42
+ #if C10_CLANG_HAS_WARNING("-Wshorten-64-to-32")
43
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wshorten-64-to-32" )
44
+ #endif
45
+
41
46
C10_DECLARE_bool (caffe2_operator_throw_if_fp_exceptions);
42
47
C10_DECLARE_bool (caffe2_operator_throw_if_fp_overflow_exceptions);
43
48
#ifdef __GNU_LIBRARY__
@@ -1601,4 +1606,6 @@ inline unique_ptr<ExternalTensorFunctionsBase> CreateExternalTensorFunctions(
1601
1606
1602
1607
} // namespace caffe2
1603
1608
1609
+ C10_CLANG_DIAGNOSTIC_POP ()
1610
+
1604
1611
#endif // CAFFE2_CORE_OPERATOR_H_
Original file line number Diff line number Diff line change 23
23
#include < utility>
24
24
#include < vector>
25
25
26
+ C10_CLANG_DIAGNOSTIC_PUSH ()
27
+ #if C10_CLANG_HAS_WARNING("-Wshorten-64-to-32")
28
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wshorten-64-to-32" )
29
+ #endif
30
+
26
31
namespace torch { namespace autograd {
27
32
28
33
struct Edge ;
@@ -618,3 +623,5 @@ edge_list collect_next_edges(Variables&&... variables) {
618
623
return std::move (make.next_edges );
619
624
}
620
625
}} // namespace torch::autograd
626
+
627
+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 14
14
#include < string>
15
15
#include < vector>
16
16
17
+ C10_CLANG_DIAGNOSTIC_PUSH ()
18
+ #if C10_CLANG_HAS_WARNING("-Wshorten-64-to-32")
19
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wshorten-64-to-32" )
20
+ #endif
21
+
17
22
namespace torch {
18
23
namespace jit {
19
24
@@ -541,3 +546,5 @@ struct Lexer {
541
546
};
542
547
} // namespace jit
543
548
} // namespace torch
549
+
550
+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 10
10
#include < iostream>
11
11
#include < vector>
12
12
13
+ C10_CLANG_DIAGNOSTIC_PUSH ()
14
+ #if C10_CLANG_HAS_WARNING("-Wshorten-64-to-32")
15
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wshorten-64-to-32" )
16
+ #endif
17
+
13
18
namespace torch {
14
19
namespace jit {
15
20
@@ -503,3 +508,5 @@ struct hash<torch::jit::CompleteArgumentSpec> {
503
508
}
504
509
};
505
510
} // namespace std
511
+
512
+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 9
9
#include < torch/csrc/Export.h>
10
10
#include < torch/csrc/jit/frontend/source_range.h>
11
11
12
+ C10_CLANG_DIAGNOSTIC_PUSH ()
13
+ #if C10_CLANG_HAS_WARNING("-Wdeprecated-copy-dtor")
14
+ C10_CLANG_DIAGNOSTIC_IGNORE (" -Wdeprecated-copy-dtor" )
15
+ #endif
16
+
12
17
C10_DECLARE_bool (torch_jit_disable_warning_prints);
13
18
C10_DECLARE_bool (torch_jit_enable_rethrow_caught_exception);
14
19
@@ -159,3 +164,5 @@ TORCH_API std::vector<std::string> currentModuleHierarchy();
159
164
160
165
} // namespace jit
161
166
} // namespace torch
167
+
168
+ C10_CLANG_DIAGNOSTIC_POP ()
You can’t perform that action at this time.
0 commit comments