Skip to content

Commit

Permalink
remove dead code from generate_code program
Browse files Browse the repository at this point in the history
Pull Request resolved: pytorch#74835

Nothing uses these values any more.

Differential Revision: [D35187902](https://our.internmc.facebook.com/intern/diff/D35187902/)

Approved by: https://github.com/albanD, https://github.com/malfet
  • Loading branch information
Michael Andreas Dagitses authored and pytorchmergebot committed Apr 16, 2022
1 parent d8374ef commit 9663886
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/setup_helpers/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ def generate_code(ninja_global: Optional[str] = None,
for d in (autograd_gen_dir, jit_gen_dir, python_install_dir):
if not os.path.exists(d):
os.makedirs(d)
runfiles_dir = os.environ.get("RUNFILES_DIR", None)
data_dir = os.path.join(runfiles_dir, 'pytorch') if runfiles_dir else ''
tools_jit_templates = os.path.join(data_dir, 'tools', 'jit', 'templates')
autograd_dir = os.fspath(pathlib.Path(__file__).parent.parent / "autograd")

if subset == "pybindings" or not subset:
Expand Down

0 comments on commit 9663886

Please sign in to comment.