pytorch/torchgen
Larry Liu ddf00c803b [torchgen] Introduce Executorch types and signatures (#90591)
Retry of #89595. Accidentally closed.

## Forked `BaseCppType`

Created a module for Executorch: `torchgen.executorch`.

In `torchgen.executorch.api.types.types`:
* Define `BaseCppType` with `torch::executor` namespace.

In `torchgen.executorch.api.et_cpp`:
* Help generate `NamedCType` for `ExecutorchCppSignature` arguments.

In `torchgen.executorch.api.types.signatures`:
* Define the signature using these types. (`ExecutorchCppSignature`)

In `torchgen.executorch.api.types.__init__`:
* Suppress flake8 error for `import *`.

Differential Revision: [D41501836](https://our.internmc.facebook.com/intern/diff/D41501836/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90591
Approved by: https://github.com/iseeyuan
2022-12-10 04:34:02 +00:00
..
api [torchgen] Refactor types (#90589) 2022-12-10 04:34:00 +00:00
decompositions Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
dest Add use_lazy_shape flag to GenLazyIr class (#88444) 2022-11-04 08:23:56 +00:00
executorch [torchgen] Introduce Executorch types and signatures (#90591) 2022-12-10 04:34:02 +00:00
operator_versions Apply ufmt linter to all py files under torchgen (#81570) 2022-07-16 03:52:25 +00:00
selective_build [torchgen] Fix selective build error on custom namespace (#83141) 2022-08-10 21:27:05 +00:00
shape_functions [JIT SSA] Allow updating shape functions without recompilation (#83629) 2022-08-22 18:03:44 +00:00
static_runtime [static-runtime] run codegen (#87534) 2022-10-25 23:48:16 +00:00
__init__.py Package config/template files with torchgen (#78942) 2022-06-07 13:33:55 +00:00
BUCK.oss rename BUILD.buck to BUCK.oss (#78792) 2022-06-03 07:23:16 +00:00
BUILD.bazel Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
build.bzl Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
code_template.py Apply ufmt linter to all py files under torchgen (#81570) 2022-07-16 03:52:25 +00:00
context.py Change API type Tensor[] for structured kernels. (#73350) 2022-09-26 21:46:38 +00:00
gen_backend_stubs.py Fix exception causes all over the codebase (#90271) 2022-12-07 04:29:00 +00:00
gen_functionalization_type.py Functionalization: skip meta block computation if compute_reference_meta is false (#90219) 2022-12-06 04:03:01 +00:00
gen_lazy_tensor.py Fix exception causes all over the codebase (#90271) 2022-12-07 04:29:00 +00:00
gen_vmap_plumbing.py fix: update error when tensor escapes vmap (#89077) 2022-12-06 05:52:09 +00:00
gen.py [torchgen] Let native function declaration generation logic take a callable (#90590) 2022-12-10 04:34:02 +00:00
local.py Change API type Tensor[] for structured kernels. (#73350) 2022-09-26 21:46:38 +00:00
model.py Add Pointwise Tag from pointwise set in DTensor, use in aot_autograd partitioner (#90029) 2022-12-08 20:21:17 +00:00
native_function_generation.py Create native function for determining which implementation of SDP to call (#89029) 2022-11-16 03:07:54 +00:00
utils.py autograd: fix non-deterministic output in codegen comments (#84695) 2022-09-13 18:41:15 +00:00