File tree Expand file tree Collapse file tree 8 files changed +7
-7
lines changed
runtime/core/portable_type/c10 Expand file tree Collapse file tree 8 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ pushd pytorch
1212git checkout " $pytorch_pin "
1313popd
1414" $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/c10 pytorch/c10
15- " $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/torch/standalone pytorch/torch/standalone
15+ " $( dirname " ${BASH_SOURCE[0]} " ) " /compare_dirs.sh runtime/core/portable_type/c10/torch/headeronly pytorch/torch/headeronly
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ would cause all headers in that directory to be includeable with
1212` runtime/core/portable_type/complex.h ` , which would shadow the C99
1313` complex.h ` standard header.
1414
15- ` torch/standalone ` has been added as an extra "even more bottom of
15+ ` torch/headeronly ` has been added as an extra "even more bottom of
1616stack" directory in PyTorch, so we have to add it to our sync
1717here. The extra "stutter" c10 directory causing ` c10/torch/standlone `
1818is unfortunately awkward; perhaps we can rename the top-level
Original file line number Diff line number Diff line change 55#include <c10/macros/cmake_macros.h>
66#endif // C10_USING_CUSTOM_GENERATED_MACROS
77
8- #include <torch/standalone /macros/Export.h>
8+ #include <torch/headeronly /macros/Export.h>
99
1010// This one is being used by libtorch.so
1111#ifdef CAFFE2_BUILD_MAIN_LIB
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def define_common_targets():
125125 "@EXECUTORCH_CLIENTS" ,
126126 ],
127127 exported_deps = [
128- "//executorch/runtime/core/portable_type/c10/torch/standalone:torch_standalone_headers " ,
128+ "//executorch/runtime/core/portable_type/c10/torch/headeronly:torch_headeronly " ,
129129 ] + select ({
130130 "DEFAULT" : [],
131131 # Half-inl.h depends on vec_half.h from ATen, but only when building for x86.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def define_common_targets():
88 """
99
1010 runtime .cxx_library (
11- name = "torch_standalone_headers " ,
11+ name = "torch_headeronly " ,
1212 exported_headers = glob (["**/*.h" ]),
13- header_namespace = "torch/standalone " ,
13+ header_namespace = "torch/headeronly " ,
1414 )
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ sed -i '' '1i\
180180' \
181181" $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10/macros/Macros.h" \
182182" $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10/macros/Export.h" \
183- " $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch/standalone /macros/Export.h"
183+ " $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch/headeronly /macros/Export.h"
184184
185185cp -r $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/c10 " $HEADERS_ABSOLUTE_PATH /"
186186cp -r $HEADERS_ABSOLUTE_PATH /executorch/runtime/core/portable_type/c10/torch " $HEADERS_ABSOLUTE_PATH /"
You can’t perform that action at this time.
0 commit comments