Download tools/ast_native_phase_d5_final_packaged.py from chrisuser/NeuroCC_0.4.0: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/chrisuser/NeuroCC_0.4.0/resolve/main/tools/ast_native_phase_d5_final_packaged.py
- Command line
-
hf download hf://chrisuser/NeuroCC_0.4.0/tools/ast_native_phase_d5_final_packaged.py
-
curl -L -o ast_native_phase_d5_final_packaged.py https://huggingface.co/chrisuser/NeuroCC_0.4.0/resolve/main/tools/ast_native_phase_d5_final_packaged.py
486 Bytes
| """Run the bundled experimental D5-Final driver.""" | |
| import os | |
| from pathlib import Path | |
| import runpy | |
| import sys | |
| ROOT = Path(__file__).resolve().parents[1] | |
| RUNTIME = ROOT / 'neuro_compiler' / 'runtime' | |
| sys.path.insert(0, str(RUNTIME)) | |
| os.environ['NEUROCC_RELEASE'] = str(RUNTIME / 'release') | |
| os.environ['NEUROCC_SSA_MEMORY'] = str(RUNTIME / 'runs' / 'hyperopt_h1_h3' / 'ssa_memory.pt') | |
| os.chdir(RUNTIME) | |
| runpy.run_path(str(RUNTIME / 'ast_native_phase_d5_final.py'), run_name='__main__') | |