mindspore/tests
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_test_framework clean pylint 2020-04-28 15:35:12 +08:00
perf_test add performance test for mindrecord 2020-04-28 09:10:22 +08:00
st Support 'break', 'continue' and 'pass' 2020-05-13 12:53:07 +08:00
ut Support 'break', 'continue' and 'pass' 2020-05-13 12:53:07 +08:00
vm_impl !663 fix tensor equal bug 2020-04-27 21:23:20 +08:00
.gitignore initial version 2020-03-27 22:54:54 +08:00
CMakeLists.txt initial version 2020-03-27 22:54:54 +08:00
__init__.py initial version 2020-03-27 22:54:54 +08:00
dataset_mock.py initial version 2020-03-27 22:54:54 +08:00
ops_common.py initial version 2020-03-27 22:54:54 +08:00
runtest.sh initial version 2020-03-27 22:54:54 +08:00
train_step_wrap.py support amp when model eval, fix example of UnsortSegmentsSum 2020-04-13 19:17:47 +08:00