Commit Graph

42 Commits

Author SHA1 Message Date
huangbingjian c17a7ffbbd Replace ms_function with jit 2022-10-29 11:32:53 +08:00
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
Zhang Qinghua c4aa3c0de1 Add no_recursive flag for skipping recursive checking, and use no_recursive to disable MS_CTX_MAX_CALL_DEPTH. 2022-10-20 16:57:26 +08:00
i-robot dbc9bddf35
!43406 Adjust the location of syntax testcases
Merge pull request !43406 from huangbingjian/adjust_syntax_testcases
2022-10-13 02:51:52 +00:00
Margaret_wangrui dd2c45a829 Add the check of the return value of Assign, AssignAdd, AssignSub. 2022-10-11 15:50:47 +08:00
huangbingjian 780900ae5f Adjust the location of syntax testcases 2022-10-11 11:27:01 +08:00
He Wei 10d866e953 Fix auto monad to support high order cnode 2022-07-30 20:15:00 +08:00
Zhang Qinghua f90dcc963d Support isolated side-effect nodes in constant returned func graph. 2022-07-27 10:12:24 +08:00
huanghui f9c502d4ca fix print all to fallback 2022-06-09 09:54:56 +08:00
huanghui b0daae6137 fix handle builtin func in while body 2022-06-07 09:14:15 +08:00
Zhang Qinghua 329c4f23c8 Throw an exception if the side-effect op is ignored in the func graph who returned constant result. 2022-04-21 14:24:15 +08:00
zhousiyi 19e9571149 rename env_getitem/setitem to EnvironGet/EnvironGet 2022-01-04 02:17:30 +00:00
lianliguang 7227b61979 modify info when infer error 2021-09-23 15:54:43 +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
fangzehua 4ccc635a07 add print security 2021-09-13 17:45:36 +08:00
zhousiyi 9319eff958 change the error type from RuntimeError to TypeError 2021-07-22 06:38:12 +00:00
zhousiyi b590f6d929 don't replace u with fprop_u in primal_graph and bprop_fg 2021-07-19 08:14:40 +00:00
Zhang Qinghua 8b8c59f01e Optimize the compile performance in Parser, FG, Manager and Renormalize:
---
Remove the routine of handling isolated nodes in Renormalize.
Add isolated nodes from Parser&Resolver.
Modify isolated nodes handling in FG&Manager.
Optimize the renormalize routines.
Other optimizations.
2021-03-04 16:01:54 +08:00
He Wei 7d9a783993 [auto-monad] Support side-effects by auto-monad
The basic idea is: exploits data dependency to control the execution order
of side-effect operations, and keep the semantics of ANF unchanged.

The ControlDepend primitive is removed and there are two primitives added:

1. UpdateState:
```
  a = Assign(para, value)
```
became:
```
  a = Assign(para, value, u)
  u = UpdateState(u, a)
```

2. Load:
```
  x = Add(para, value)
```
became:
```
  p = Load(para, u)
  x = Add(p, value)
  u = UpdateState(u, p)
```
2021-02-08 09:01:15 +08:00
l00591931 9ec100d069 Change TensorAdd to Add, from r1.1 to master 2021-02-01 17:53:52 +08:00
yujianfeng 18a76ff3c5 Check whether the network args are tensors in the compile phase 2020-10-19 11:46:10 +08:00
buxue 14f6c95c28 add overflow check for make_range and optimize isinstance processing 2020-09-17 19:47:10 +08:00
buxue 458498900c support not in and add check for grad_with_sens with no sense provide. 2020-09-16 17:28:17 +08:00
buxue 4d59fe9ee1 add check for mod when y in (-1, 0) 2020-09-02 18:10:00 +08:00
buxue 4168c51f0d add check tensor when graph output is a const or parameter 2020-08-31 17:17:24 +08:00
panyifeng 1a54785fe2 remove name arg from gradoperation 2020-08-26 11:16:57 +08:00
buxue 09f1a4bbaf support axis is None for all and any interface in graph mode. 2020-08-17 17:53:02 +08:00
mindspore-ci-bot 5827ba9a8a !3940 View code support interface 'all' and 'any' of tensor
Merge pull request !3940 from zhangbuxue/support_interface_all_and_any_of_tensor
2020-08-04 20:08:44 +08:00
buxue 2c4cb49a11 support interface 'all' and 'any' of tensor 2020-08-04 18:24:56 +08:00
zhousiyi f926650c64 if AbstractFunction comparison succeed in NewContext, then the evaluator should use the same one, otherwise one of the evaluator will not be evaluated.
if funcgraph or metafuncgraph call it recursively, then anf_node should be used as tracking_id to discriminate the first occurcance and the
recursive occurance.
add anf_node to PrimitiveAbstractClosure hash() to reduce cost of GetEvaluatorFor().

ignore the tracking_id to make cse work.
2020-08-03 07:57:07 +00:00
simson 5f77fbdd75 Rewrite tensor's __bool__ for pynative mode 2020-07-23 16:51:46 +08:00
panyifeng 44e74ad5aa Apply indexed_slices 2020-07-13 15:36:25 +08:00
kingfo add3778a61 add grad all in pynative mode 2020-07-10 17:49:54 +08:00
zhousiyi d5255fe311 fix assign used in while 2020-06-30 08:22:27 +00:00
buxue 66bbdb4a31 change tensor dtype and shape from function to attr 2020-06-12 19:03:23 +08:00
seatea 7398526abc Fix pylint warning for test cases of optimizer, infer, parse and
pynative.
2020-05-28 11:35:33 +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
panyifeng 755ba75deb fix pylint 2020-05-14 14:22:52 +08:00
zhousiyi 047ac018da specialize hypermap paramater 2020-05-12 01:51:57 +00:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00