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)
```
4 years ago
buxue
6ccc4379b4
do not broaden scalar
4 years ago
l00591931
9ec100d069
Change TensorAdd to Add, from r1.1 to master
4 years ago
hedongdong
8241dfa443
Add dynamic shape support for the operator Concat
4 years ago
jinyaohui
a9972a7def
optim pylint
4 years ago
panyifeng
1a54785fe2
remove name arg from gradoperation
5 years ago
fary86
8d245497a4
Fix large for loop Runtime Error due to backend missing operators
5 years ago
mindspore-ci-bot
afd16fbf0a
!4963 fix bug of switch layer join
...
Merge pull request !4963 from fary86/fix_switch_layer_join_bug
5 years ago
fary86
947e19b839
Fix bug of switch layer join
5 years ago
panyifeng
637e812347
remove global grad ops
5 years ago
fary86
04524b6bd3
Fix coredump caused by function call depth too large
5 years ago
panyifeng
abab21ed57
add func type check for switch layer
5 years ago
panyifeng
f9f3cd7ce0
fix switch_layer_issues
5 years ago
panyifeng
22a9d02e9f
switch_layer incorporate env_get and tuple_get
5 years ago
fary86
38083e055a
Fix coredump missing return statement after while loop
5 years ago
panyifeng
1c296b96c9
fix switch layer sigle prim cell
5 years ago
fary86
7602054acd
Fix do concat in while loop specialize error
5 years ago
panyifeng
9927e6eb5c
eager mode sparse
5 years ago
kingfo
73ea9b7855
fix mix precesion operator issue
5 years ago
simson
5f77fbdd75
Rewrite tensor's __bool__ for pynative mode
5 years ago
fary86
e17469bf42
Fix bug of large for loop
5 years ago
huangdongrun
beacc26077
* add isconstant primitive
...
* add infer_value for common math ops
* convert constant bool tensor to bool value
* do not infer value when encounter 0 as division
for while condition, do not unrool if condition is a tensor
5 years ago
liuwenhao4
f87c70a9ab
Fixing some tiny faults about Pylint in my code(ops)
5 years ago
mindspore-ci-bot
1a4abefa9a
!1385 support for multi nest switch
...
Merge pull request !1385 from amongo/SupportMultiSwitch
5 years ago
huangdongrun
334d038008
add support for multi switch
...
resolve review
5 years ago
liuwenhao4
f3f0cbaeee
Fixing some tiny faults about Pylint in my code(ops)
5 years ago
jinyaohui
fbdba6e4da
clean pylint
5 years ago
huangdongrun
3e2074b113
add check for ControlDepend
5 years ago
jinyaohui
5a914994ba
clean pylint
5 years ago
jinyaohui
bcfaff97f9
clean pylint
5 years ago
jiangjinsheng
c05203ef06
add validate for geswitch and merge
5 years ago
panyifeng
065e25e1bb
Support index to switch_layer
5 years ago
panyifeng
b7596e1f33
Add switch_case primitive
5 years ago
zhunaipan
930a1fb0a8
initial version
...
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
5 years ago