Commit Graph

1988 Commits

Author SHA1 Message Date
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
mindspore-ci-bot 635acb6c27 !1109 remove unused variable from repeat op
Merge pull request !1109 from Jamie/fixoneline
2020-05-13 00:43:00 +08:00
Jamie Nisbet ff5f2521fc remove unused variable 2020-05-12 11:44:18 -04:00
mindspore-ci-bot 298a784878 !1090 fix mean and var shape in layernorm
Merge pull request !1090 from JichenZhao/layernorm_mean_var_shape
2020-05-12 20:04:22 +08:00
mindspore-ci-bot 7ab3f5c348 !1086 fix some bug in quant debug
Merge pull request !1086 from SanjayChan/05showcase
2020-05-12 19:00:21 +08:00
mindspore-ci-bot 48e54dcfda !1056 [Auto parallel] Memory calculation in the inference phase
Merge pull request !1056 from Xiaoda/memory-estimation-in-inference-phase
2020-05-12 17:21:05 +08:00
mindspore-ci-bot 00b7877ec4 !1087 add param_perfix to cell
Merge pull request !1087 from SanjayChan/03cell
2020-05-12 16:27:16 +08:00
chenzomi 6710e1feac add param_perfix to cell 2020-05-12 16:21:58 +08:00
mindspore-ci-bot c1290e7b70 !1088 Add some op registrations for const value to attr
Merge pull request !1088 from YuJianfeng/master
2020-05-12 16:06:02 +08:00
mindspore-ci-bot fdad91355f !1093 reset parallel context before running each parallel test case
Merge pull request !1093 from yihuaijie/master
2020-05-12 15:57:55 +08:00
mindspore-ci-bot da7d605e85 !683 WIP: specialize hyper map parameter
Merge pull request !683 from xychow/bypass-renorm-and-specialize-hypermap-parameter
2020-05-12 15:50:00 +08:00
mindspore-ci-bot 6ab046e4dd !1062 Adapt Softplus\SoftplusGrad for VM, and ApplyFtrlD for both GE and VM.
Merge pull request !1062 from liuxiao/softplus-softplusgrad
2020-05-12 15:35:56 +08:00
Xiaoda Zhang a05aa21cc2 calculating PEAK memory cost in the inference phase 2020-05-12 15:30:59 +08:00
mindspore-ci-bot 552fc5c958 !1085 Adapt removing TopK and use TopKD
Merge pull request !1085 from zhaozhenlong/vm-adapt-topk
2020-05-12 15:27:01 +08:00
mindspore-ci-bot 06a9eeb3bf !1050 [bug][auto_mixed_precision]fix sens shape error of `TrainOneStepWithLossScaleCell`
Merge pull request !1050 from vlne-v1/I1GEPN-check-bprop-error-loss-scale-wrap
2020-05-12 15:23:46 +08:00
zhaojichen c622879a2f fix mean and var shape in layernorm 2020-05-12 03:01:30 -04:00
Yi Huaijie 462f30e077 reset auto parallel context before each test 2020-05-12 14:59:45 +08:00
mindspore-ci-bot eb6094315a !1083 change the hswish to HSwish
Merge pull request !1083 from SanjayChan/02bug_fix
2020-05-12 14:33:00 +08:00
mindspore-ci-bot b9d3495c4d !1081 format nn. and change quant.py
Merge pull request !1081 from SanjayChan/formast
2020-05-12 14:31:37 +08:00
mindspore-ci-bot 98112d1a64 !997 support vm for log1p
Merge pull request !997 from jiangjinsheng/log1p
2020-05-12 14:21:14 +08:00
mindspore-ci-bot 8701ca24dd !950 add bert base version finetune and evaluation script in bert_clue dir
Merge pull request !950 from yoonlee666/master
2020-05-12 14:11:25 +08:00
Wei Luning 3e89f7baaa fix sens shape error in loss_scale one_step_wrap 2020-05-12 14:09:51 +08:00
chenzomi 2a695cfe24 fix some bug in quant debug 2020-05-12 14:05:54 +08:00
mindspore-ci-bot 28a6daaed5 !1017 add profiling_mode and profiling_options to context
Merge pull request !1017 from jinyaohui/context_opt
2020-05-12 11:55:14 +08:00
mindspore-ci-bot b0b867a4bc !1077 fix bug when reset taskinfo error
Merge pull request !1077 from jjfeing/master
2020-05-12 11:48:40 +08:00
mindspore-ci-bot 7dc31684b6 !1073 fix reshape tensor redistribution bug
Merge pull request !1073 from yao_yf/reshape_bug_fix
2020-05-12 11:47:10 +08:00
jiangjinsheng c36e7f1564 support vm for log1p 2020-05-12 11:46:18 +08:00
chenzomi 1397326c46 add quant.py and change the format of __init__ 2020-05-12 11:41:59 +08:00
chenzomi 189f88fbe1 change the hswish to HSwish 2020-05-12 11:29:49 +08:00
yujianfeng 5f26583da4 Add some op registrations for const to attr 2020-05-12 11:24:48 +08:00
mindspore-ci-bot 8003a89a7b !766 bugfix(SA): Add the support of nested loop.
Merge pull request !766 from gongchen/nest_loop
2020-05-12 11:10:53 +08:00
zhaozhenlong cc9dc69f2f adapt vm topk 2020-05-12 11:08:02 +08:00
mindspore-ci-bot fd72534a1c !1065 Seperate lr groups and weight_decay groups
Merge pull request !1065 from ghzl/improve-parameter-groups
2020-05-12 10:13:05 +08:00
yao_yf b0921c15e9 xreshape tensor_redistrinution bug fix 2020-05-12 10:08:01 +08:00
mindspore-ci-bot 4fe6ddebd1 !1075 Cleanup dataset UT: util.py internals
Merge pull request !1075 from cathwong/ckw_dataset_ut_cleanup3
2020-05-12 09:58:14 +08:00
jinyaohui 5a9de3716d add profiling mode and profiling options to context 2020-05-12 09:53:08 +08:00
zhousiyi 047ac018da specialize hypermap paramater 2020-05-12 01:51:57 +00:00
mindspore-ci-bot 4a8fcf5d76 !1055 support vm for floor
Merge pull request !1055 from jiangjinsheng/vm_floor
2020-05-12 09:20:16 +08:00
mindspore-ci-bot 05e8b8028b !1060 Fix bug of assigning value to non-Parameter class member
Merge pull request !1060 from fary86/fix_assign_target_not_parameter
2020-05-12 09:20:08 +08:00
mindspore-ci-bot 66667d727e !1034 Gpu Support Dropout operator
Merge pull request !1034 from SanjayChan/dropout
2020-05-12 09:11:30 +08:00
jjfeing c258062166 fix bug when reset taskinfo core dump 2020-05-12 09:00:57 +08:00
mindspore-ci-bot f89d081942 !1076 Merge remaining code from dataset_dev
Merge pull request !1076 from JesseKLee/btree
2020-05-12 08:39:22 +08:00
Jesse Lee 3c643e7298 Move from dataset_dev branch to here 2020-05-11 15:11:53 -04:00
Cathy Wong 49ef53f164 Cleanup dataset UT: util.py internals 2020-05-11 14:44:24 -04:00
mindspore-ci-bot 2bc3fcb1c1 !1044 clean pylint warning in test dir
Merge pull request !1044 from jinyaohui/clean_pylint_test
2020-05-11 22:07:46 +08:00
mindspore-ci-bot 19ecc99718 !1071 update submodule ge
Merge pull request !1071 from guozhijian/update_modele_ge
2020-05-11 21:46:54 +08:00
mindspore-ci-bot 2af6ee2482 !1054 Add slice shape for param info
Merge pull request !1054 from yangzhenzhang/add-slice-shape-for-param-info
2020-05-11 21:29:40 +08:00
guohongzilong c95215bca0 seperate lr groups and weight_decay groups 2020-05-11 21:27:30 +08:00
mindspore-ci-bot c72589aad6 !953 add submodule id for log interface
Merge pull request !953 from fary86/add_submodule_id_for_log_interface
2020-05-11 21:13:05 +08:00
jinyaohui d40e89b1bc clean pylint warning in st/ops/ascend 2020-05-11 20:59:30 +08:00