Commit Graph

153 Commits

Author SHA1 Message Date
l00591931 092fcc40c9 Fix inline pass problem on switch 2021-09-23 11:48:00 +08:00
i-robot bbdacd41f4 !20585 add security isolate for save_graphs
Merge pull request !20585 from huanghui/add-security-isolate-for-DumpIR
2021-09-15 01:25:46 +00:00
huanghui ba66c0d491 add security isolate for save_graphs 2021-09-14 10:24:12 +08:00
chenfei 252a38f5a0 add test test_break_continue 2021-09-13 19:36:01 +08:00
liangzelang ff909d5757 Fix abstract different bug between caller and subgraph output. 2021-09-06 17:56:20 +08:00
lanzhineng bd4add384f The args must be compatible with the loaded graph 2021-09-03 11:32:11 +08:00
chenfei 2188d80354 open log info 2021-09-02 09:49:16 +08:00
He Wei b37b85ab68 Fix order enforce for sub-graph calling 2021-08-30 08:54:21 +08:00
i-robot 9fcec5b723 !22492 prune less effective Ascend testcases to level1
Merge pull request !22492 from yanghaoran/prune_ascend_testcases
2021-08-28 07:39:47 +00:00
i-robot 0ad0d9144e !22081 [ME]Code clean of master
Merge pull request !22081 from chenfei_mindspore/code_clean_of_master
2021-08-28 06:09:50 +00:00
yanghaoran a0ff742442 prune less effective Ascend testcases to level1 2021-08-27 19:59:59 +08:00
Margaret_wangrui d7ed03cbb9 Revert "Fix the execution sequence problem of the load in maketuple"
This reverts commit d0d0cc2c71.
2021-08-26 20:20:09 +08:00
gaoyong10 9fb5ce3b87 Create new graph for pynative mode. 2021-08-26 11:16:15 +08:00
chenfei 72cab0262e code clean 2021-08-25 09:29:01 +08:00
lanzhineng 6daabf9a86 mindir:add @ms_function testcase 2021-08-24 17:03:25 +08:00
chenfei 303146dea6 add env one card 2021-08-23 10:59:15 +08:00
ms_yan 36a8886ca2 Revert "[feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset"
This reverts commit b077aa1cab.

Revert "[feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset"

This reverts commit 4e6f7dc97d.

delete pass_registry_test.cc

comment  hiai_nlu_model_multi.pb related  line
2021-08-23 01:46:38 +08:00
djc b077aa1cab [feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset 2021-08-22 16:26:45 +08:00
djc 4e6f7dc97d [feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset 2021-08-22 13:39:37 +08:00
i-robot 9f08cdc4ab !21958 Fix the execution sequence problem of the load in maketuple
Merge pull request !21958 from Margaret_wangrui/load_in_maketuple
2021-08-21 15:18:54 +00:00
Margaret_wangrui d0d0cc2c71 Fix the execution sequence problem of the load in maketuple 2021-08-20 09:37:42 +08:00
chenfei 4428db97e3 check abstract ref of update parameters 2021-08-18 23:14:14 +08:00
i-robot fca1cb34c8 !21490 Ascend control use vm
Merge pull request !21490 from chenfei_mindspore/ascend-control-use-vm
2021-08-16 03:34:54 +00:00
lanzhineng 93a1956978 mindir:support switchlayer 2021-08-15 11:40:05 +08:00
chenfei d6bc8c2fe3 ascend control in vm
inner test case fix

rm MS_CTX_MULTIGRAPH in ME func grpah cloner

add logs
2021-08-13 17:45:45 +08:00
yanghaoran 64d34104e5 move useless testcases from level0 to level1 2021-08-11 23:11:34 +08:00
lanzhineng 787b19c014 mindir:support control flow while 2021-08-10 17:01:26 +08:00
lanzhineng dc63dea103 mindIR support control flow 2021-08-08 19:02:18 +08:00
gaoyong10 2c96987222 add skip decorator and gpu testcase 2021-08-04 17:23:00 +08:00
chenfei 709b1e80db add control test cases and vm bug fix 2021-08-03 18:43:22 +08:00
lanzhineng 34aae1bef4 clear exception_ptr 2021-07-08 20:41:29 +08:00
i-robot 5c1a254f16 !19514 [ME][Control]Add control flow test cases in ci
Merge pull request !19514 from chenfei_mindspore/add_control_test_ci
2021-07-07 12:14:35 +00:00
chenfei 8c9a1d65b3 add control test cases for ci 2021-07-06 21:39:14 +08:00
lanzhineng b706db3119 suport more evaluators and fix recrusive_fun testcase 2021-07-06 19:53:50 +08:00
lanzhineng 04dba00b93 infer:codex & testcases 2021-07-05 21:01:13 +08:00
huangbingjian ad8f73f32b set default context mode to GRAPH_MODE 2021-06-09 14:40:49 +08:00
mindspore-ci-bot 7820e12396 !16372 [ME][Control]Support for to while
From: @Margaret_wangrui
Reviewed-by: 
Signed-off-by:
2021-05-18 14:17:11 +08:00
Margaret_wangrui 56cd94cf60 Support for to while 2021-05-18 09:39:05 +08:00
xsmq a424c3124b adjust ascend st from level0 to level1 2021-05-14 13:07:24 +08:00
Margaret_wangrui 8ef76ab3d0 1、add auto_monad testcase
2、Support trace tuple side-effect from a Switch
2021-05-10 11:30:17 +08:00
Margaret_wangrui 3989c5537c add some control sink testcases 2021-04-30 14:57:29 +08:00
mindspore-ci-bot 31df54f424 !15784 if Switch/SwitchLayer, do not replace Load or remove UpdateState
From: @huangbingjian
Reviewed-by: @zh_qh
Signed-off-by: @zh_qh
2021-04-30 09:23:17 +08:00
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