pytorch/tools/code_analyzer
Dhruv Matani 75322dbeb4 [PyTorch] [BUCK] Replace pt_deps.bzl with a YAML operator dependency file which is generated by the code analyser (#46057)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46057

The code analyser (that uses LLVM and runs in the OSS PyTorch git repo) already produces a YAML file which contains base operator names and the operators that they depend on. Currently, this operator dependency graph is converted into a python dictionary to be imported in BUCK and used there. However, it is mostly fed into other executables by serializing the JSON and the consumer pieces this JSON together by concatenating each argument together. This seems unnecessary. Instead, this diff retains the original YAML file and makes all consumers consume that same YAML file.
ghstack-source-id: 114641582

Test Plan: Build Lite Predictor + sandcastle.

Reviewed By: iseeyuan

Differential Revision: D24186303

fbshipit-source-id: eecf41bf673d90b960c3efe7a1271249f0a4867f
2020-10-20 02:00:36 -07:00
..
analyzer.cpp
build.sh [PyTorch] [BUCK] Replace pt_deps.bzl with a YAML operator dependency file which is generated by the code analyser (#46057) 2020-10-20 02:00:36 -07:00
CMakeLists.txt
default_op_deps.yaml [pytorch][bot] update mobile op deps (#44854) 2020-09-17 18:33:13 -07:00
gen_op_registration_allowlist.py [RFC] Switch PyTorch Selective Build (Custom Build) to use the SelectiveBuilder abstraction (#45722) 2020-10-18 15:10:42 -07:00
op_deps_pass.cpp Reimplement per-operator selective build (#39401) 2020-08-20 19:10:02 -07:00
op_deps_processor.py
run_analyzer.sh