{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/glow-graph-lowering-compiler-techniques-for","title":"Glow: Graph Lowering Compiler Techniques for Neural Networks","arxiv_id":"1805.00907","date":"2018-05-02","proceeding":null,"authors":["Nadav Rotem","Jordan Fix","Saleem Abdulrasool","Garret Catron","Summer Deng","Roman Dzhabarov","Nick Gibson","James Hegeman","Meghan Lele","Roman Levenstein","Jack Montgomery","Bert Maher","Satish Nadathur","Jakob Olesen","Jongsoo Park","Artem Rakhov","Misha Smelyanskiy","Man Wang"],"abstract":"This paper presents the design of Glow, a machine learning compiler for heterogeneous hardware. It is a pragmatic approach to compilation that enables the generation of highly optimized code for multiple targets. Glow lowers the traditional neural network dataflow graph into a two-phase strongly-typed intermediate representation. The high-level intermediate representation allows the optimizer to perform domain-specific optimizations. The lower-level instruction-based address-only intermediate representation allows the compiler to perform memory-related optimizations, such as instruction scheduling, static memory allocation and copy elimination. At the lowest level, the optimizer performs machine-specific code generation to take advantage of specialized hardware features. Glow features a lowering phase which enables the compiler to support a high number of input operators as well as a large number of hardware targets by eliminating the need to implement all operators on all targets. The lowering phase is designed to reduce the input space and allow new hardware backends to focus on a small number of linear algebra primitives.","url_abs":"http://arxiv.org/abs/1805.00907v2","url_pdf":"http://arxiv.org/pdf/1805.00907v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"glow-graph-lowering-compiler-techniques-for","repo_url":"https://github.com/pytorch/glow","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"glow-graph-lowering-compiler-techniques-for","repo_url":"https://github.com/HabDevops/glow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"glow-graph-lowering-compiler-techniques-for","repo_url":"https://github.com/iviarcio/glow-nmp","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"glow-graph-lowering-compiler-techniques-for","repo_url":"https://github.com/sjw32/glow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1805.00907","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1805.00907"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sjw32/glow","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pytorch/glow","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/iviarcio/glow-nmp","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HabDevops/glow","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":2,"unverified":16},"by_repo_kind":{"official":{"samples":18,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/resnet.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/resnet.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"c6a6d592fac4207a","entry":"accimage_loader","repo":"pytorch/glow","repo_kind":"official","path":"utils/imagenet_topk_accuracy_driver.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/imagenet_topk_accuracy_driver.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c6a6d592fac4207a"}},{"code_sha256_prefix":"da366058f867300e","entry":"center_crop","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/transforms.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"da366058f867300e"}},{"code_sha256_prefix":"a9bbaa08e7827857","entry":"crop","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/transforms.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a9bbaa08e7827857"}},{"code_sha256_prefix":"984e14405e6a25ef","entry":"default_image_loader","repo":"pytorch/glow","repo_kind":"official","path":"utils/imagenet_topk_accuracy_driver.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/imagenet_topk_accuracy_driver.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"984e14405e6a25ef"}},{"code_sha256_prefix":"7e0e0f3068610ef4","entry":"filter_node_transformation","repo":"pytorch/glow","repo_kind":"official","path":"utils/compilation_filter.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/compilation_filter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7e0e0f3068610ef4"}},{"code_sha256_prefix":"773d008cb657aa60","entry":"find_all_related_transformation","repo":"pytorch/glow","repo_kind":"official","path":"utils/compilation_filter.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/compilation_filter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"773d008cb657aa60"}},{"code_sha256_prefix":"2d9bd71d8d47b863","entry":"find_all_replaced_nodes","repo":"pytorch/glow","repo_kind":"official","path":"utils/log_parser.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/log_parser.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2d9bd71d8d47b863"}},{"code_sha256_prefix":"488f6fd3326fd5ca","entry":"init_db","repo":"pytorch/glow","repo_kind":"official","path":"utils/compilation_filter.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/compilation_filter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"488f6fd3326fd5ca"}},{"code_sha256_prefix":"ad72ce9123a98a26","entry":"init_db","repo":"pytorch/glow","repo_kind":"official","path":"utils/log_parser.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/log_parser.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ad72ce9123a98a26"}},{"code_sha256_prefix":"58d65437202272b5","entry":"mode_0to1","repo":"pytorch/glow","repo_kind":"official","path":"utils/caffe2_pb_runner.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/caffe2_pb_runner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58d65437202272b5"}},{"code_sha256_prefix":"75c98dd70e687f49","entry":"mode_0to256","repo":"pytorch/glow","repo_kind":"official","path":"utils/caffe2_pb_runner.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/caffe2_pb_runner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"75c98dd70e687f49"}},{"code_sha256_prefix":"5b3e7d8d033563ff","entry":"mode_128to127","repo":"pytorch/glow","repo_kind":"official","path":"utils/caffe2_pb_runner.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/caffe2_pb_runner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5b3e7d8d033563ff"}},{"code_sha256_prefix":"0b1b9afe65c79f72","entry":"pickle_load","repo":"pytorch/glow","repo_kind":"official","path":"utils/download_datasets_and_models.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/download_datasets_and_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0b1b9afe65c79f72"}},{"code_sha256_prefix":"397bf3e58cfadb47","entry":"pil_loader","repo":"pytorch/glow","repo_kind":"official","path":"utils/imagenet_topk_accuracy_driver.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/utils/imagenet_topk_accuracy_driver.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"397bf3e58cfadb47"}},{"code_sha256_prefix":"59659f8793b5e227","entry":"resize","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/transforms.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/transforms.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"59659f8793b5e227"}},{"code_sha256_prefix":"3f0a356e3f033e3a","entry":"resnet18","repo":"pytorch/glow","repo_kind":"official","path":"torch_glow/utils/torchvision_fake/resnet.py","file_url":"https://github.com/pytorch/glow/blob/HEAD/torch_glow/utils/torchvision_fake/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0a356e3f033e3a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}