forked from mindspore-Ecosystem/mindspore
He Wei
7d9a783993
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) ``` |
||
---|---|---|
.. | ||
__init__.py | ||
array_ops_vm_impl.py | ||
math_ops_vm_impl.py | ||
nn_ops_vm_impl.py | ||
vm_interface.py | ||
vm_me.py |