pytorch/tools/codegen
Elias Ellison f65eb09d6b [JIT] Move Shape Function definition to python
Moves jit shape function registration to python. Like jit decompositions, a script must be run after adding new definitions which serializes them in a c++ file.

This was a request so that torch-mlir could define functions in python and upstream their shape functions. cc @silvasean  @makslevental
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75546
Approved by: https://github.com/davidberard98
2022-04-19 20:59:44 +00:00
..
api Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
decompositions Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
dest Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
operator_versions Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
selective_build Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
shape_functions [JIT] Move Shape Function definition to python 2022-04-19 20:59:44 +00:00
static_runtime Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
__init__.py
BUILD.bazel use the //tools/codegen target in Bazel (#74465) 2022-03-31 12:54:14 +00:00
build.bzl move codegen binary to the common build system (#74470) 2022-03-31 15:38:16 +00:00
code_template.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
context.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
gen.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
gen_backend_stubs.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
gen_functionalization_type.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
gen_lazy_tensor.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
local.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00
model.py [PyTorch] Add NestedTensorCPU and NestedTensorCUDA dispatch keys (#75808) 2022-04-19 18:12:12 +00:00
utils.py Reformat tools/codegen with black 2022-04-19 14:51:32 +00:00