pytorch/tools/code_analyzer
Jiakai Liu fc598f9023 generate op dependency graph as python code
Summary:
Add support to print op dependence as python code so that both custom
build script and BUCK can import it without yaml parser.

Test Plan:
- generate the file:
```
ANALYZE_TORCH=1 FORMAT=py DEPLOY=1 tools/code_analyzer/build.sh -closure=false
```

- load the file in python:
```
python
>>> from tools.code_analyzer.generated.torch import TORCH_DEPS
>>> print(TORCH_DEPS)
```

Differential Revision: D18894639

Pulled By: ljk53

fbshipit-source-id: e304d0525a07a13cf6e8a9317cd22637200d044c
2020-01-02 20:26:28 -08:00
..
build.sh generate op dependency graph as python code 2020-01-02 20:26:28 -08:00
CMakeLists.txt style fixes to code analyzer (#30808) 2019-12-05 11:25:37 -08:00
op_dependency.cpp generate op dependency graph as python code 2020-01-02 20:26:28 -08:00