Commit Graph

111 Commits

Author SHA1 Message Date
huangbingjian 2a85af5d83 1. if Switch/SwitchLayer, do not replace Load or remove UpdateState; 2. add control flow testcases; 3. fix codedex problem 2021-04-28 10:15:07 +08:00
chenfei ae87a8ace3 more complex basic case 2021-04-27 20:02:53 +08:00
mindspore-ci-bot 5a48a08e34 !15577 [ME][ControlFlow] Add some control sink testcases
From: @Margaret_wangrui
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
2021-04-25 14:04:00 +08:00
Margaret_wangrui 43b13f4a50 add control flow testcases 2021-04-23 15:57:06 +08:00
mindspore-ci-bot 09d41736e1 !15532 add control flow testcases
From: @huangbingjian
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
2021-04-23 09:27:19 +08:00
mindspore-ci-bot b1865c7ff0 !15520 while test cases 3
From: @lanzhineng
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
2021-04-23 09:27:04 +08:00
huangbingjian 94eb1e70e0 add testcases related to if inside the function 2021-04-22 19:10:57 +08:00
lanzhineng 44d932a583 while control cases 3 2021-04-22 15:07:06 +08:00
mindspore-ci-bot c316d76a03 !15456 [ME][ControlFlow] Add some control sink testcases
From: @Margaret_wangrui
Reviewed-by: @zh_qh,@ginfung
Signed-off-by: @zh_qh
2021-04-21 14:42:39 +08:00
mindspore-ci-bot 23fdba1c36 !15462 [ME][Control]Add assert of inner testcases
From: @chenfei52
Reviewed-by: @zh_qh,@ginfung
Signed-off-by: @zh_qh
2021-04-21 14:06:05 +08:00
mindspore-ci-bot 8bf9c96958 !15422 while control test cases 2
From: @lanzhineng
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
2021-04-21 11:50:38 +08:00
chenfei e150dedc70 check result of test case 2021-04-21 11:17:12 +08:00
Margaret_wangrui e1f452c151 add inner control flow tests 2021-04-21 10:29:17 +08:00
lanzhineng 39c0a5b7da while cases 2 2021-04-21 09:38:43 +08:00
mindspore-ci-bot e346b8028b !15413 update st testcase for while bprop
From: @liangzelang
Reviewed-by: @zhoufeng54,@kisnwang
Signed-off-by: @kisnwang
2021-04-20 14:15:29 +08:00
lanzhineng 65479c7646 while test cases 2021-04-20 10:22:30 +08:00
liangzelang 971c2d3c6d [control flow]update st testcases for while bp 2021-04-19 17:37:03 +08:00
He Wei 92d60f4c6f Fix pylint issues in test_cont_break.py
Fix 'Useless super delegation in method __init__';
Also fix class naming problem.
2021-04-12 09:53:11 +08:00
huangbingjian 8d64c11b8a add testcases related to if, fix codedex check 2021-04-09 18:04:32 +08:00
mindspore-ci-bot 32f92eecbd !14805 [ME][ControlFlow] Add some control sink testcases
From: @Margaret_wangrui
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
2021-04-09 09:18:24 +08:00
Margaret_wangrui e69ead3f19 add some control sink testcases 2021-04-08 20:21:45 +08:00
chenfei_mindspore ac6f5983b5 add inner testcases of control flow
add testcases 2
2021-04-08 14:18:35 +08:00
mindspore-ci-bot 57828fecb0 !13607 [ME]Add test case for while grad avoid stuck
From: @chenfei52
Reviewed-by: 
Signed-off-by:
2021-03-30 19:14:04 +08:00
chenfei 906f3fa222 add test case for while grad 2021-03-29 11:06:50 +08:00
liangzelang 87d7de017b update ci testcases 2021-03-29 09:46:04 +08:00
liangzelang ba65fb9f3c Support non-tail recursive graphs 2021-03-26 16:21:40 +08:00
yangwei e34b2873fa set abstract for maketuple 2021-03-18 19:14:28 +08:00
He Wei 891fd7df92 [auto-monad] Refactor ascend_auto_monad
1. Remove output parameter pool for ascend control flow;
2. Remove duplicate code for Switch and SwitchLayer;
3. Add 'return' attribute to label_goto that used for return;
4. Disable tail call optimize for graphs with 'recursive' flag.
2021-03-08 11:48:45 +08:00
mindspore-ci-bot 176afda078 !12307 Add result check for cases in test_cont_grad.py
From: @liangzelang
Reviewed-by: @jjfeing,@zhoufeng54
Signed-off-by: @zhoufeng54
2021-02-18 17:34:33 +08:00
liangzelang 81afa9f103 check result in test_cont_graph cases 2021-02-09 15:11:36 +08:00
l00591931 9ec100d069 Change TensorAdd to Add, from r1.1 to master 2021-02-01 17:53:52 +08:00
chenfei 6d41c00907 use select implement tensor in list 2020-12-14 21:20:36 +08:00
meizhiyuan b80c289caa control_flow case 2020-11-24 21:17:28 +08:00
yujianfeng 3176d377e6 Remove redundant phi nodes 2020-11-16 09:36:55 +08:00
mindspore-ci-bot 314c5ad055 !5172 remove name arg from gradoperation
Merge pull request !5172 from riemann_penn/remove_name_args_from_gradoperation
2020-08-26 16:55:57 +08:00
mindspore-ci-bot 95212b55a0 !3271 make reftype a subtype of MetaTensor and try to mark ref in node input
Merge pull request !3271 from vlne-v1/ref_demo
2020-08-26 15:45:48 +08:00
Wei Luning 24a10225cf change base class of ref to tensor in cpp 2020-08-26 12:41:25 +08:00
panyifeng 1a54785fe2 remove name arg from gradoperation 2020-08-26 11:16:57 +08:00
leilei_snow df9df609f8 fix index error 2020-08-25 08:05:07 +00:00
mindspore-ci-bot abe6b82138 !5011 remove global grad ops
Merge pull request !5011 from riemann_penn/remove_global_grad_ops
2020-08-25 09:47:55 +08:00
huangdongrun 1bd9fefd84 support if by if not inline
add testcase of net of if by if
2020-08-24 17:11:26 +08:00
panyifeng 637e812347 remove global grad ops 2020-08-24 16:50:09 +08:00
huangdongrun f30418991c refactor bool op parsing to be consistent with pynative mode
add testcase of st
2020-08-20 16:45:30 +08:00
huangdongrun 2a6d346d2f support if by if grad parameter
add join for ref

adjust env eliminate to eliminate all env ops

add partial app cache

resolve while endless

fix env eliminate

support for "for while" cases

fix join shape error
2020-08-15 09:47:10 +08:00
simson 5f77fbdd75 Rewrite tensor's __bool__ for pynative mode 2020-07-23 16:51:46 +08:00
leilei_snow 38f32d0f8f add testcase for switchlayer. 2020-07-10 07:46:28 +00:00
chenfei 193c583cf6 add unreuse args of kernel graph
insert assign at the end of graph

clear log

clear log 2

handle replace call of unreuse args

handle bug of replace node
2020-07-03 18:24:00 +08:00
zhoufeng c94dea6a51 Modify nested while testcase
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2020-07-01 21:50:33 +08:00
zhoufeng 18bc81e88c Ascend control sink testcase
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2020-07-01 15:54:28 +08:00
liubuyu 107794fac9 pylint warning clean 2020-05-25 11:52:36 +08:00
liubuyu 37be555a81 pylint clean 2020-05-20 11:12:14 +08:00
jinyaohui 5a914994ba clean pylint 2020-05-18 16:42:35 +08:00
jinyaohui bcfaff97f9 clean pylint 2020-05-18 10:31:46 +08:00
mindspore-ci-bot 6f386c5782 !1082 Support 'break', 'continue' and 'pass' statements
Merge pull request !1082 from hewei/support_cont_break
2020-05-13 14:19:28 +08:00
He Wei 33fa90efc9 Support 'break', 'continue' and 'pass'
To handle 'break' and 'continue' statement, a loop context is pushed
to a stack before we parse the loop body, and pop it after body parsed.
When a 'break', 'continue' statement is encountered, we retrieve current
loop contex from the stack, and let the current block jump to the end
block or header block;

For 'break' statement, we added an extra 'end_block' follow the 'after_block',
because 'after_block' is called from a ContionalJump in 'header_block', it can
not be set as jump target from other place. to support 'break', we let loop
body jump to the 'end_block' at the 'break' point. and 'after_block'
maybe a good place to handle loop 'else' clause in the future.

Handle 'pass' is simple, just bypass it when doing parse.
2020-05-13 12:53:07 +08:00
jinyaohui 391a060f21 remove two context param 2020-05-12 22:11:50 +08:00
rick_sanchez 6146424596 refactor vm module for multigraph sink 2020-05-09 09:10:27 +08:00
kpy 65cd41844d change manager logic to faster combine_like step 2020-04-28 20:54:01 +08:00
rick_sanchez 6ae8345cad refactor vm module for multigraph sink 2020-04-28 09:53:43 +08:00
leonwanghui ba43dbc148 Fix pylint warnings in mindspore st test module 2020-04-22 16:44:19 +08:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00