pytorch/torchgen
Larry Liu a0ca9dc8ca [torchgen] Small fix for empty yaml file edge case (#92938)
Rely on CI.

Avoid issues such as:

```
Traceback (most recent call last):
  File "<string>", line 38, in <module>
  File "<string>", line 36, in __run
  File "/usr/local/fbcode/platform010/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/fbcode/platform010/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/re_cwd/buck-out/v2/gen/fbcode/2841b324ed9b88dd/caffe2/torchgen/__gen_executorch__/gen_executorch#link-tree/torchgen/gen_executorch.py", line 690, in <module>
    main()
  File "/re_cwd/buck-out/v2/gen/fbcode/2841b324ed9b88dd/caffe2/torchgen/__gen_executorch__/gen_executorch#link-tree/torchgen/gen_executorch.py", line 626, in main
    parsed_yaml, custom_ops_parsed_yaml = parse_yaml_files(
  File "/re_cwd/buck-out/v2/gen/fbcode/2841b324ed9b88dd/caffe2/torchgen/__gen_executorch__/gen_executorch#link-tree/torchgen/gen_executorch.py", line 505, in parse_yaml_files
    translate_native_yaml(
  File "/re_cwd/buck-out/v2/gen/fbcode/2841b324ed9b88dd/caffe2/torchgen/__gen_executorch__/gen_executorch#link-tree/torchgen/gen_executorch.py", line 448, in translate_native_yaml
    for e in native_es:
TypeError: 'NoneType' object is not iterable
```

Differential Revision: [D42729435](https://our.internmc.facebook.com/intern/diff/D42729435)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92938
Approved by: https://github.com/JacobSzwejbka
2023-01-27 22:45:21 +00:00
..
api [mta] Backward of unary foreach functions (#89591) 2023-01-23 08:28:06 +00:00
decompositions
dest Include dispatch key in wrapper symbol name (#90674) 2022-12-16 19:36:32 +00:00
executorch [torchgen] Add CI job to cover custom ops registration for Executorch (#91291) 2023-01-14 02:30:54 +00:00
operator_versions Update flatbuffer test models to match pkl models (#93022) 2023-01-26 21:17:57 +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
BUCK.oss
BUILD.bazel
build.bzl [torchgen] Add CI job to make sure torchgen works for Executorch op registration (#89596) 2022-12-21 03:07:32 +00:00
code_template.py
context.py Change API type Tensor[] for structured kernels. (#73350) 2022-09-26 21:46:38 +00:00
gen.py [torchgen] Let native function declaration generation logic take a callable (#90780) 2022-12-14 20:13:04 +00:00
gen_backend_stubs.py Fix exception causes all over the codebase (#90271) 2022-12-07 04:29:00 +00:00
gen_executorch.py [torchgen] Small fix for empty yaml file edge case (#92938) 2023-01-27 22:45:21 +00:00
gen_functionalization_type.py *_scatter ops should preserve input stride/storage_offset (#91029) 2022-12-22 19:41:53 +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
local.py Change API type Tensor[] for structured kernels. (#73350) 2022-09-26 21:46:38 +00:00
model.py Revert "Add sym_size/stride/numel/storage_offset to native_function.yaml (#91919)" 2023-01-17 21:03:18 +00:00
native_function_generation.py [SDPA] Standardizes the return shape for dense tensor of SDPA regardless of fused kernel called (#90776) 2022-12-14 18:08:02 +00:00
utils.py Minor typing improvements (#91068) 2022-12-20 23:43:11 +00:00