File tree Expand file tree Collapse file tree 7 files changed +52
-0
lines changed
Expand file tree Collapse file tree 7 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1313#include < array>
1414#include < bitset>
1515
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+
1624namespace at {
1725class Tensor ;
1826class OptionalTensorRef ;
@@ -795,3 +803,5 @@ struct TORCH_API SplitUntil32Bit {
795803};
796804
797805} // namespace at
806+
807+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 44#include < c10/core/TensorOptions.h>
55#include < ATen/core/Dimname.h>
66
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+
712namespace at {
813
914class Tensor ;
@@ -74,3 +79,5 @@ struct TORCH_API MetaBase {
7479} // namespace impl
7580
7681} // namespace at
82+
83+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 3838#include < ATen/core/ivalue.h>
3939#endif
4040
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+
4146C10_DECLARE_bool (caffe2_operator_throw_if_fp_exceptions);
4247C10_DECLARE_bool (caffe2_operator_throw_if_fp_overflow_exceptions);
4348#ifdef __GNU_LIBRARY__
@@ -1601,4 +1606,6 @@ inline unique_ptr<ExternalTensorFunctionsBase> CreateExternalTensorFunctions(
16011606
16021607} // namespace caffe2
16031608
1609+ C10_CLANG_DIAGNOSTIC_POP ()
1610+
16041611#endif // CAFFE2_CORE_OPERATOR_H_
Original file line number Diff line number Diff line change 2323#include < utility>
2424#include < vector>
2525
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+
2631namespace torch { namespace autograd {
2732
2833struct Edge ;
@@ -618,3 +623,5 @@ edge_list collect_next_edges(Variables&&... variables) {
618623 return std::move (make.next_edges );
619624}
620625}} // namespace torch::autograd
626+
627+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 1414#include < string>
1515#include < vector>
1616
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+
1722namespace torch {
1823namespace jit {
1924
@@ -541,3 +546,5 @@ struct Lexer {
541546};
542547} // namespace jit
543548} // namespace torch
549+
550+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 1010#include < iostream>
1111#include < vector>
1212
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+
1318namespace torch {
1419namespace jit {
1520
@@ -503,3 +508,5 @@ struct hash<torch::jit::CompleteArgumentSpec> {
503508 }
504509};
505510} // namespace std
511+
512+ C10_CLANG_DIAGNOSTIC_POP ()
Original file line number Diff line number Diff line change 99#include < torch/csrc/Export.h>
1010#include < torch/csrc/jit/frontend/source_range.h>
1111
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+
1217C10_DECLARE_bool (torch_jit_disable_warning_prints);
1318C10_DECLARE_bool (torch_jit_enable_rethrow_caught_exception);
1419
@@ -159,3 +164,5 @@ TORCH_API std::vector<std::string> currentModuleHierarchy();
159164
160165} // namespace jit
161166} // namespace torch
167+
168+ C10_CLANG_DIAGNOSTIC_POP ()
You can’t perform that action at this time.
0 commit comments