Commit Graph

92 Commits

Author SHA1 Message Date
huangbingjian b98fc0021a Add api mindspore.jit and mindspore.jit_class.
1、ms_function will be removed in a future version and replaced with jit.
2、ms_class will be removed in a future version and replaced with
jit_class.
2022-10-21 10:17:44 +08:00
huangbingjian 780900ae5f Adjust the location of syntax testcases 2022-10-11 11:27:01 +08:00
i-robot 5fc62f6f1e
!42893 Check if xs is iterable in for
Merge pull request !42893 from LiangZhibo/check
2022-10-10 06:19:08 +00:00
liangzhibo fd0a6ae956 Add len with check in for 2022-10-09 17:28:44 +08:00
lvyufeng eff301e3e5 add value print for Parameter 2022-09-26 12:54:13 +08:00
zhouxulin2 67609ab114 support built-in function sum when the type of input is Tensor 2022-09-06 16:58:35 +08:00
zhouxulin2 04de449be0 support operator bitwise_xor, left_shift and right_shift for graph mode 2022-09-01 12:43:29 +08:00
liangzhibo a89dd30704 support int, float in graph mode 2022-08-23 14:55:03 +08:00
i-robot 4bf3ab00b8
!40461 Enable graph list and tuple function
Merge pull request !40461 from LiangZhibo/list
2022-08-19 08:13:29 +00:00
i-robot 5b82546458
!40265 Support string operation in graph mode.
Merge pull request !40265 from huangbingjian/support_str
2022-08-19 03:06:35 +00:00
liangzhibo f75ff85f91 Support list tuple in graph 2022-08-18 11:14:23 +08:00
huangbingjian 57d58163a8 Support string operation in graph mode. 2022-08-18 09:57:30 +08:00
liangzhibo 1d5cbad45f Enable graph len 2022-08-16 10:36:05 +08:00
liangzhibo 88bc967cdd support graph hasattr and getattr 2022-08-12 17:48:51 +08:00
Margaret_wangrui c07e385996 Support the type of the input of built-in function max and min is tensor. 2022-08-10 13:01:52 +08:00
huangbingjian 1686142679 Support all(Tensor),any(Tensor),round(Tensor) in graph mode. 2022-07-28 21:06:20 +08:00
huangbingjian 57b21747a0 Support abs(Tensor) in graph mode 2022-07-25 10:06:34 +08:00
liangzhibo f8f2caffa1 Enable list comprehension in graph mode 2022-07-20 09:45:28 +08:00
liangzhibo d752505ff8 Fix log for fallback evaluate 2022-06-28 16:48:33 +08:00
i-robot 4931cb7d34
!36373 Enable global python function in fallback syntax
Merge pull request !36373 from LiangZhibo/master
2022-06-28 01:31:03 +00:00
Margaret_wangrui fa8f360570 [Fallback] Provides errors for built-in functions that are not supported in graph mode and are not suitable for using JIT Fallback. 2022-06-27 11:46:19 +08:00
liangzhibo 4993d10b17 Enable function in interpret node 2022-06-27 09:13:31 +08:00
Margaret_wangrui ca87ce3986 Add less infer_value and less_equal infer_value. 2022-06-22 10:43:24 +08:00
i-robot c39a0b5969
!36239 Enable syntax of "for x in xs", when xs is an interpret node
Merge pull request !36239 from LiangZhibo/for
2022-06-22 01:08:52 +00:00
liangzhibo 5a4d86caa8 for x in xs syntax when xs is numpy array 2022-06-21 15:09:35 +08:00
liangzhibo 5eeba07b2d Refactor fallback builtin function 2022-06-21 10:17:03 +08:00
Margaret_wangrui 3570fef872 [Fallback] Check with the processing of interpret nodes during ast tree parsing. 2022-06-20 17:59:06 +08:00
Margaret_wangrui 17d5c0c2a1 [Fallback] Support class type is numpy array. 2022-06-20 09:56:27 +08:00
i-robot f7aa696067
!36046 Support single interpret node in while condition
Merge pull request !36046 from huanghui/fix-fallback
2022-06-17 12:04:17 +00:00
huanghui d5c9c000ed support alone interpret node in while condition 2022-06-16 14:07:40 +08:00
Margaret_wangrui 7d0e4526bc [Fallback] Support ms.Tensor() in construct or ms_function, add check with the module. 2022-06-16 09:23:01 +08:00
Margaret_wangrui 83c44a20e4 [Fallback] Support ms.Tensor() in construct or ms_function. 2022-06-14 17:09:46 +08:00
liangzhibo 3400487a51 Fallback warning for interpret node 2022-06-10 17:21:42 +08:00
i-robot d124bc732e
!35518 Fix print all eval by fallback
Merge pull request !35518 from huanghui/fallback-st
2022-06-10 01:21:57 +00:00
i-robot d87f0bea2d
!35623 Import the error for syntax "for x in xs"
Merge pull request !35623 from LiangZhibo/syntax
2022-06-09 06:30:17 +00:00
huanghui f9c502d4ca fix print all to fallback 2022-06-09 09:54:56 +08:00
liangzhibo 59df5656b3 Improve the error for fallback control flow 2022-06-09 09:08:52 +08:00
liangzhibo 458a3d65a3 Change fallback control flow local param logic 2022-06-08 11:55:19 +08:00
huanghui b0daae6137 fix handle builtin func in while body 2022-06-07 09:14:15 +08:00
Margaret_wangrui afe3d2a161 [Fallback][Control_flow] Remove fallback testcase from ST to UT. 2022-06-01 10:40:20 +08:00
yujianfeng d855c830d2 Change class Variable to mutable function 2022-05-16 09:05:32 +08:00
i-robot 1cc49698ed
!33983 primitive support str.format
Merge pull request !33983 from lianliguang/primitive-support-str-format
2022-05-10 07:18:34 +00:00
lianliguang bd619120ac support cell and primitive for str.format 2022-05-09 09:21:06 +08:00
liangzhibo 5cb03b22c1 change isinstance error to typeerror 2022-05-05 09:28:52 +08:00
Margaret_wangrui c8a853114c [Fallback][Control_flow] Add control flow fallback testcases. 2022-04-22 11:36:19 +08:00
liangzhibo 8f2bf65f80 Graph isinstance extends 2022-04-19 10:49:09 +08:00
liangzhibo 78a542164c Delete convert_python_data in ValueToPyData 2022-04-18 19:19:19 +08:00
liangzhibo 7b9bc36a11 Add convert_python_data at the end ot ValueToPyData 2022-04-16 14:19:20 +08:00
huangbingjian a20579cef3 Support for creating and calling instances of ms_class 2022-04-16 10:08:11 +08:00
Margaret_wangrui dcda778f8a [ME][Fallback][Control_flow] Ensure the information of the Interpret node is transmitted normally when function block jumps. 2022-04-06 09:27:55 +08:00