Commit Graph

68 Commits

Author SHA1 Message Date
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