pytorch/torch/csrc/jit/script
Elias Ellison 00aedfc0e2 constant pooling pass (#12222)
Summary:
Add a pass to move all constants to the beginning of the graph, and deduplicate.

This extends https://github.com/pytorch/pytorch/pull/10231 to also handle constants introduced in inlining, constant propagation, etc.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12222

Reviewed By: driazati

Differential Revision: D10201616

Pulled By: eellison

fbshipit-source-id: bc9c5be26868c8b5414257a0d4462de025aeb9bd
2018-10-08 11:55:02 -07:00
..
builtin_functions.cpp Introduce builtin script functions (#12141) 2018-09-28 10:55:08 -07:00
builtin_functions.h Introduce builtin script functions (#12141) 2018-09-28 10:55:08 -07:00
compiler.cpp constant pooling pass (#12222) 2018-10-08 11:55:02 -07:00
compiler.h Introduce type variables to implement generic list operators (#12040) 2018-09-26 17:02:51 -07:00
error_report.h Allow __constant__ values in a ScriptModule to be used as attributes for builtin functions (#7017) 2018-04-27 17:44:17 -07:00
init.cpp Add weak script mode for script functions (#11963) 2018-10-05 18:55:49 -07:00
init.h [jit] Have ScriptModule inherit from Module (#5769) 2018-03-22 00:17:49 -04:00
lexer.cpp Add reminder % to the jit 2018-09-12 12:40:38 -07:00
lexer.h Add reminder % to the jit 2018-09-12 12:40:38 -07:00
module.cpp Introduce builtin script functions (#12141) 2018-09-28 10:55:08 -07:00
module.h Introduce builtin script functions (#12141) 2018-09-28 10:55:08 -07:00
parser.h (Very small) allow trailing commas in assign or tuples (#11723) 2018-10-01 10:10:13 -07:00
python_tree_views.cpp Unified type annotation parsing for script frontends (#10279) 2018-08-14 18:13:15 -07:00
python_tree_views.h Add workaround to fix include warnings in Python 2 builds. (#6716) 2018-04-24 12:30:19 -07:00
tree_views.h Add reminder % to the jit 2018-09-12 12:40:38 -07:00
tree.h Match parameter names and = default (#9737) 2018-07-30 14:10:00 -07:00