Skip to content

Commit

Permalink
Generate aten_interned_strings.h automatically (pytorch#69407)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#69407

This generates aten_interned_strings.h from `native_functions.yaml`
which is more like how it was originally done. The items deleted from
`interned_strings.h` are duplicates that need to be removed in order
for the code to compile, some of the remaining items may still be out
of date but it is fairly benign even if that's the case.

Test Plan: Imported from OSS

Reviewed By: zou3519

Differential Revision: D32923636

Pulled By: albanD

fbshipit-source-id: a0fd6b3714e70454c5f4ea9b19da5e047d2a4687
  • Loading branch information
peterbell10 authored and facebook-github-bot committed Jan 18, 2022
1 parent d665097 commit 2bb6a4f
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 1,307 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ generated_cpu_cpp = [
"aten/src/ATen/MethodOperators.h",
"aten/src/ATen/NativeMetaFunctions.h",
"aten/src/ATen/RegistrationDeclarations.h",
"aten/src/ATen/core/aten_interned_strings.h",
"aten/src/ATen/core/TensorBody.h",
"aten/src/ATen/core/TensorMethods.cpp",
"aten/src/ATen/core/ATenOpList.cpp",
Expand Down
Loading

0 comments on commit 2bb6a4f

Please sign in to comment.