Commit Graph

42 Commits

Author SHA1 Message Date
Margaret_wangrui 91993769a5 [Fallback][Control_flow] Add some control flow fallback testcases. 2022-05-14 11:51:46 +08:00
i-robot 2c73744ba5
!34135 [Fallback][Control_flow] Add some fallback control flow testcases.
Merge pull request !34135 from Margaret_wangrui/fallback_control_flow
2022-05-11 01:31:25 +00:00
Margaret_wangrui d3dfded173 [Fallback][Control_flow] Add some fallback control flow testcases. 2022-05-10 14:10:55 +08:00
liangzhibo 35a4deca70 Add if_after_while and if_after_for for fallback control flow 2022-05-09 14:26:02 +08:00
i-robot 43fd864c10
!31745 Enable if parallel call flag by default
Merge pull request !31745 from xychow/enable-if-parallel-call-by-default
2022-05-05 09:28:39 +00:00
i-robot 8cd5a54b6e
!33772 [ME] Add some print testcases.
Merge pull request !33772 from Margaret_wangrui/print_testcases
2022-05-05 01:05:42 +00:00
zhousiyi d4aba77d3d enable if parallel call transformation by default; fix test case ut/python/pipeline/parse/test_fix_bug.py::test_fix_expanddims_loss_scale
Check only if all branch of middle graph's output are scalar, parallel_if transformation should be ignored

fix test_auto_monad.py::test_while_if geswitch input shape check failed

fix ut/python/pipeline/parse/test_super.py::test_super_cell core dump as varg and kwarg parameter are removed but those flags are not set, it will cause FuncGraph::GetPositionArgsCount be negative

skip test_control_flow in ut/python/paralle as Parallel team is working on contro flow adaption.

fix ut/python/ir/test_row_tensor.py::test_row_tensor_with_control_flow_if

fix for kwonlyargs when eliminate_parameter and add testdases

fix cannot join for st/control/inner/test_012_if_in_for.py

fix pclint errors

fix test/st/scipy_st/sparse/test_linalg.py, if the output cnode of former funcgraph is Depend CNode with input 1 as middle funcgraph call, then keep the output of former funcgraph as Depend other than middle funcgraph tail call.

log as exception

If the output of middle funcgraph contain PyInterpret CNode, then ignore
the transformation as the Value in Abstract will be kAnyValue after join
of the PyInterpret CNode value.

Backend cannot support for RealDiv with Int64, so change one operand to Float
2022-04-29 08:22:56 +00:00
Margaret_wangrui b5c6bf3c5c [ME] Add some print testcases. 2022-04-29 14:31:08 +08:00
Margaret_wangrui 21e5677b4a [Fallback][Control_flow] Add control flow fallback testcases. 2022-04-29 12:04:58 +08:00
liangzhibo 2fc92bba08 graph fallback control flow ForceToBoolNode change 2022-04-28 15:16:09 +08:00
i-robot 0feb213472
!33505 [Fallback][Control_flow] Fix print problom in for_in_if case.
Merge pull request !33505 from Margaret_wangrui/for_in_if_print
2022-04-27 14:51:59 +00:00
Margaret_wangrui c7df0ab813 [Fallback][Control_flow] Convert numpy number to graph node. 2022-04-26 08:47:21 +08:00
Margaret_wangrui 467e298b13 [Fallback][Control_flow] Fix print problom in for_in_if case. 2022-04-25 15:41:41 +08:00
liangzhibo 00ebb87197 Fallback control flow if in for 2022-04-24 14:59:09 +08:00
i-robot b2485e7b4c
!33403 Fix fallback control flow condition wrongly parsed problem and add some test cases.
Merge pull request !33403 from LiangZhibo/control
2022-04-24 06:20:09 +00:00
liangzhibo 331081bb73 graph fallback if in if 2022-04-22 14:29:58 +08:00
Margaret_wangrui c8a853114c [Fallback][Control_flow] Add control flow fallback testcases. 2022-04-22 11:36:19 +08:00
Margaret_wangrui 8f65443883 [Fallback][Control_flow] Support constant control flow scenario. 2022-04-19 12:10:42 +08:00
i-robot 0a5aae28e4
!33133 Fix control flow with fallback problem of change variable value.
Merge pull request !33133 from LiangZhibo/fallback_control_flow
2022-04-19 01:13:32 +00:00
liangzhibo 2705be3898 fix fallback control flow problem 2022-04-18 20:15:50 +08:00
Margaret_wangrui 46a30c44db [Fallback] The fallback process is only used when limit the patterns (strings and % symbols) during ParseBinop. 2022-04-18 19:16:52 +08:00
huangbingjian a20579cef3 Support for creating and calling instances of ms_class 2022-04-16 10:08:11 +08:00
Margaret_wangrui c3b61dca21 [ME] The built-in function( print ) needs to be executed using an operator in some cases.
Please enter the commit message for your changes. Lines starting
2022-04-09 14:15:35 +08:00
Margaret_wangrui a33b048156 [Fallback][Control_flow] Handling the issue of interpret nodes transform information as phi nodes. 2022-04-07 14:03:56 +08:00
liangzhibo 9549a5dbe1 Add primitive to valuetopydata 2022-03-31 14:15:19 +08:00
i-robot 1ab4a0ebc4
!30179 [ME][Fallback] Support some control flow scenes with fallback.
Merge pull request !30179 from Margaret_wangrui/fallback_control_flow_2
2022-03-30 06:21:56 +00:00
Margaret_wangrui 5089708203 [ME][Fallback] Support some control flow scenes with fallback. 2022-03-29 14:59:57 +08:00
Margaret_wangrui 8cbeb299b3 [ME] Add some raise/print + format testcases.Support format string('%' symbol). 2022-03-28 17:47:13 +08:00
Margaret_wangrui 1646a8d584 [ME][Fallback] Add the error code line information in validate. 2021-12-30 21:04:55 +08:00
Margaret_wangrui 74d42e9553 [ME] Add the validate check with return tuple. 2021-12-27 16:39:00 +08:00
Margaret_wangrui b4668d4ddd [ME][Fallback] Support print in ms_function or construct 2021-12-17 14:11:51 +08:00
huangbingjian db4567989a fallback parse Tensor, different from NumPy. 2021-12-14 12:59:47 +08:00
i-robot c41c8e8908 !27486 [ME][Fallback] Support list insert.
Merge pull request !27486 from Margaret_wangrui/list_insert
2021-12-13 09:05:09 +00:00
huangbingjian 038cbe43de add tesecases of Tensor 2021-12-11 10:14:41 +08:00
Margaret_wangrui 5d97a268a9 [ME][Fallback] Support list insert 2021-12-10 12:03:15 +08:00
i-robot c621547d26 !26962 [Fallback] Process the interpret node in the return node
Merge pull request !26962 from huangbingjian/fallback_return_tuple
2021-12-02 01:53:04 +00:00
Margaret_wangrui ee1b4d4e6d [ME][Fallback] Review the local dict and try to eval out the interpret node 2021-12-01 10:02:26 +08:00
huangbingjian e970c96d68 Process the interpret node in the return node 2021-11-29 22:56:18 +08:00
huangbingjian cf4a4ba900 Partially support numpy attr/method 2021-11-26 16:46:55 +08:00
huangbingjian 00f3fa99e2 add fallback testcases 2021-11-24 17:39:55 +08:00
Margaret_wangrui 16ac3638d3 [ME][Fallback] Add some fallback numpy test cases 2021-11-24 11:20:06 +08:00
huangbingjian d0ca18b921 Add global Py param when processing global namespace info. 2021-11-09 09:34:30 +08:00