Commit Graph

5 Commits

Author SHA1 Message Date
Hoai Linh Tran h00472437 46c590b787 Add new flag to watch for the need of Renormalize pass when parsing the python input program
Signed-off-by: Hoai Linh Tran h00472437 <hoai.linh.tran@huawei.com>

Add optimizer checking: For a group of passes in "optimizer", if flagged then it will check and collect the newly generated nodes without types (i.e. abstract() == nullptr).
Before calling Renormalize(), the optimizer will check if there is any node needed retyping. If not the Renormalize pass will not be called.
Add checking for non-null abstract but still needs renorm;
Add flags to Substitution to help watching Renormalize

Simpler pass result checker, change Bool to Enum type
2020-04-13 23:45:14 -04:00
Wei Luning 37c94a5f76 add pass replace_old_param_ 2020-04-13 17:52:55 +08:00
biffex 62bbf560c6 constant duplicate mul for momentum 2020-04-09 22:28:00 +08:00
huangdongrun d3f733fa25 support grad on graph with variable arguments
use unpack graph primitive instead

add testcases for all grad interface

remove debug log

format code

remove dumpfuncgraph

resolve clang-format

resolve reviews

resolve cpplint

fix review
2020-04-01 20:24:04 +08:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00