Commit Graph

4 Commits

Author SHA1 Message Date
fary86 b314c1d621 Remove extra empty string from log text 2020-04-27 14:34:30 +08:00
zhousiyi f6a4f3d155 [static_analysis]: remove the TrivialPrimEvaluator cache.
add cache for PythonPrimEvaluator. Be careful that
 the infer function of PythonPrimitive in python code should
 be idempotent.
2020-04-23 09:13:57 +00:00
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
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00