forked from huawei/mindspore2022
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) ``` |
||
|---|---|---|
| .. | ||
| anf_runtime_algorithm_test.cc | ||
| kernel_graph_test.cc | ||
| session_basic_test.cc | ||