mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
remove dead code from generate_code program
Pull Request resolved: https://github.com/pytorch/pytorch/pull/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
This commit is contained in:
committed by
PyTorch MergeBot
parent
d8374efb53
commit
9663886009
@ -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:
|
||||
|
Reference in New Issue
Block a user