Commit Graph

25 Commits

Author SHA1 Message Date
Margaret_wangrui e01ad12cdc code self check 2021-06-10 09:33:27 +08:00
huanghui 29f632613f optimize log 2021-06-04 12:32:44 +08:00
huanghui 197bd84ae0 fix static code check 2021-05-27 16:59:43 +08:00
Margaret_wangrui 5adb0f03e9 code check 2021-05-26 09:35:46 +08:00
buxue 6f1105ea79 show accurate error line when use user defined class 2021-04-01 21:52:00 +08:00
buxue 8c47ce1803 show accurate error info and error lines when use unsupported builtin function 2021-03-31 12:33:38 +08:00
buxue d830a2b55a optimize exception mode when use undefined name in if for and while 2021-03-27 17:28:52 +08:00
buxue e3056ed9b2 show accurate code line when use uninitialized var in for 2021-03-21 17:50:58 +08:00
Zhang Qinghua 46485439c1 Filter FV out from isolated nodes list. 2021-03-11 20:53:23 +08:00
Zhang Qinghua 2e48501d54 Add more isolated nodes in Parser, and clear dependency nodes that have no side effect. 2021-03-08 21:40:47 +08:00
Zhang Qinghua df866f7248 Add TopoSort Rhs First attribute for special CNode, such as Depend CNode with isolated nodes. 2021-03-06 12:39:36 +08:00
Zhang Qinghua b8d84ba106 Modify log level to INFO for printing isolated node info. 2021-03-04 20:00:19 +08:00
Zhang Qinghua 8b8c59f01e Optimize the compile performance in Parser, FG, Manager and Renormalize:
---
Remove the routine of handling isolated nodes in Renormalize.
Add isolated nodes from Parser&Resolver.
Modify isolated nodes handling in FG&Manager.
Optimize the renormalize routines.
Other optimizations.
2021-03-04 16:01:54 +08:00
He Wei 7d9a783993 [auto-monad] Support side-effects by auto-monad
The basic idea is: exploits data dependency to control the execution order
of side-effect operations, and keep the semantics of ANF unchanged.

The ControlDepend primitive is removed and there are two primitives added:

1. UpdateState:
```
  a = Assign(para, value)
```
became:
```
  a = Assign(para, value, u)
  u = UpdateState(u, a)
```

2. Load:
```
  x = Add(para, value)
```
became:
```
  p = Load(para, u)
  x = Add(p, value)
  u = UpdateState(u, p)
```
2021-02-08 09:01:15 +08:00
huanghui bda74495f3 Add trace mangager around front opt 2020-11-28 19:49:08 +08:00
yujianfeng 3176d377e6 Remove redundant phi nodes 2020-11-16 09:36:55 +08:00
Wei Luning 24a10225cf change base class of ref to tensor in cpp 2020-08-26 12:41:25 +08:00
zhoufeng 663278112f optimize code compile performance
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2020-08-18 14:33:24 +08:00
liubuyu a499d4e47c decoupling core and debug 2020-07-31 10:39:31 +08:00
fary86 d4a3d0fa14 Fix large for loop execute fail 2020-07-25 09:03:59 +08:00
buxue f84b055244 add check for implicit conversion when scalar is not number and bool. 2020-07-22 20:55:19 +08:00
mindspore-ci-bot 8da91ca3cf !3237 support call the parent class function
Merge pull request !3237 from zhangbuxue/support_call_the_parent_class_construct_function
2020-07-21 22:13:04 +08:00
buxue 073507a5e0 support call the parent class function 2020-07-21 16:38:11 +08:00
Wei Luning acbccea644 remove redundant phi 2020-07-17 11:46:09 +08:00
liubuyu 43c79eb853 mindspore path adjust 2020-07-14 18:07:28 +08:00