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)
```
5 years ago
l00591931
9ec100d069
Change TensorAdd to Add, from r1.1 to master
5 years ago
mindspore-ci-bot
9fa0499fa0
Change GatherV2 to Gather r1.1 to master
5 years ago
buxue
3d33c4fed3
support call inner net attr
5 years ago
yujianfeng
08e00b20a9
Move the whole graph nodes firstly for the single used graph when inline
5 years ago
yangzhenzhang
9da3f9bec9
mini step grad accumulation
5 years ago
yujianfeng
728fac6c9f
Expand J for innermost graph first when the graph also contains J primitive
5 years ago
yujianfeng
e1aa34a030
Ignore the graphs with defer_inline flag when specializing on graph arguments
5 years ago
buxue
2530943a7f
optimize list getitem in bprop
5 years ago
mindspore-ci-bot
afa931ae79
!9308 Clean useless tensor after run pynative bprop graph
From: @HulkTang
Reviewed-by:
Signed-off-by:
5 years ago
Peilin Wang
d9fb28b9fc
zeroslike dynamic shape no opt
fix ci
fix ci
fix ci
fix ci
5 years ago
tanghuikang
82450afa9e
Optimize memory using in pynative mode
5 years ago
zhupuxu
4f569677b7
redundant_codes
Signed-off-by: zhupuxu <zhupuxu@huawei.com>
5 years ago
mindspore-ci-bot
3b7acc57c9
!9508 [Auto parallel] Set CNODE's fullname when cloning
From: @xiaoda_zh
Reviewed-by: @kisnwang,@stsuteng
Signed-off-by: @stsuteng
5 years ago
Xiaoda Zhang
9a9e3a751e
set cnode's fullname when cloning
5 years ago
Zhang Qinghua
25a2b8cd5b
Never inline middle after block for control flow.
5 years ago
Zhang Qinghua
3ea67d4549
Refactor and simplify the inlining procedure.
5 years ago
mindspore-ci-bot
ea191ed5da
!8463 Run ops one by one in pynative bp graph
From: @HulkTang
Reviewed-by:
Signed-off-by:
5 years ago
HulkTang
c36b477568
Run ops one by one in pynative bp graph
5 years ago
huanghui
bda74495f3
Add trace mangager around front opt
5 years ago
Xiaoda Zhang
c79e988b0d
set fullname for reshape after reshape-elimination
5 years ago
yao_yf
9cda064716
auto parallel predict
5 years ago
lichenever
ee34ae9259
add_receive_eliminate_pass
5 years ago
lichenever
2e1c43483e
add auto parallel pipeline
5 years ago
mindspore-ci-bot
244b7034e8
!7926 [ME][OptPass]fix bug when eliminate unused parameter in 'inline' pass
From: @chenfei52
Reviewed-by:
Signed-off-by:
5 years ago
chenfei
e41c304b3e
dump ir of subpass of every substitution
add cache for transformed graph in inline
5 years ago
mindspore-ci-bot
dbcdda18ed
!8293 Resolve specialize error during transforming after block in PyNative mode.
Merge pull request !8293 from 张清华/grad_opt2
5 years ago
Zhang Qinghua
4e6e68f187
Resolve specialize error during transforming after block in PyNative mode.
5 years ago
Yi Huaijie
d7faa77b5e
support int64 shape
5 years ago
mindspore-ci-bot
e62c116277
!8163 Add irpass related to PrimTile.
Merge pull request !8163 from huangbingjian/add_irpass_tile
5 years ago
HuangBingjian
0951cd6230
add IR pass {PrimTile, X, Empty} -> X
5 years ago
chenfei
5d0b3597ff
incorporate switch pass should handle mutiple getitem
5 years ago
Zhang Qinghua
40a4a53209
Should not incorporate if the fg has bprop function.
5 years ago
mindspore-ci-bot
1b07551bd4
!6853 Add AccumulaterNV2 eliminator pass.
Merge pull request !6853 from 张清华/master2
5 years ago
Zhang Qinghua
216e8fa958
Add AccumulaterNV2 eliminator pass
5 years ago
lvliang
087eb26ef5
fix-bug-pynative-gpu-memory-not-release
5 years ago
mindspore-ci-bot
f847414117
!6471 Fix AdjustAllReduceMulAdd pass
Merge pull request !6471 from thlinh/dev_Sep18_fix_AdjustAllReduceMulAdd_pass
5 years ago
Hoai Linh Tran
46f07efc31
Fix AdjustAllReduceMulAdd pass
Revive tests in lib_test
Code cleaning
5 years ago
lvliang
37e59f826a
pynative-fix-bug-of-tuple-set-item-index-wrong
5 years ago
kpy
4338dd266e
optimizer pynative graph memory
5 years ago
mindspore-ci-bot
b40677002f
!5714 [refine]change top graph and add cell class
Merge pull request !5714 from vlne-v1/change-top-graph
5 years ago
Wei Luning
e6f82af849
add cell class to c++
5 years ago
lichenever
954cf0aff6
fix reduce_eliminate bug
5 years ago
huangdongrun
0099da2c99
add support for tuple parameter transform
add support for pynative pass
add testcases
5 years ago
mindspore-ci-bot
8d41931456
!5352 refactor ms_context implementation
Merge pull request !5352 from fary86/refactor_context_interface
5 years ago
fary86
fcbb3e0edc
Refactor ms_context implementation
5 years ago
wuyongkang
db3e33a4e8
Fix unnecessary catch and core dump in graph kernel
5 years ago
BowenK
eacb306ae0
Revert "Revert "Eliminate AllReduce when the input is a constant""
This reverts commit 7a7e499475 .
5 years ago
huangdongrun
1bd9fefd84
support if by if not inline
add testcase of net of if by if
5 years ago
BowenK
7a7e499475
Revert "Eliminate AllReduce when the input is a constant"
This reverts commit f3a9fbdd78 .
5 years ago