Commit Graph

114 Commits

Author SHA1 Message Date
buxue 2551f5ea7e support name or attribute ast.Expr 2021-03-11 21:40:33 +08:00
chuck 89eed7aa27 add compile option H to visible hidden interface 2021-03-04 22:52:48 +08:00
mindspore-ci-bot c529cfa427 !12754 auto tune step one construct json
From: @liubuyu
Reviewed-by: 
Signed-off-by:
2021-03-04 10:29:53 +08:00
mindspore-ci-bot 7ff2b3b499 !12781 fix bug of amp bn cast
From: @jojobugfree
Reviewed-by: 
Signed-off-by:
2021-03-04 10:14:51 +08:00
liubuyu 2d97244741 auto tune stage one: construct json 2021-03-03 10:59:01 +08:00
caifubi a6959c2a13 fix bn cast bug 2021-03-02 17:24:47 +08:00
yangzhenzhang a70d616841 mini step grad accumulation 2021-03-01 10:20:12 +08:00
yujianfeng f0b7c3dd4d Add a switch to control grad for scalar 2021-02-27 18:12:37 +08:00
luopengting bd7e5e9d37 check ENABLE_DUMP_IR if user set env_config_path
If the ENABLE_DUMP_IR is off, the program will raise ValueError to
remind user to turn on ENABLE_DUMP_IR.
2021-02-09 11:06:11 +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
wangnan39@huawei.com 2f79905f60 convert attr from str to enum 2021-02-07 17:03:17 +08:00
mindspore-ci-bot d638a92946 !11892 remove unnecessary profiling_output_path parameter for set_context
From: @yanghaitao1
Reviewed-by: @yelihua
Signed-off-by:
2021-02-04 08:56:55 +08:00
lilei 63eb3ed2d9 modify Tensor shape 2021-02-02 18:00:57 +08:00
yanghaitao1 eefb4295ba remove profiling output path from context 2021-02-02 17:42:32 +08:00
luopengting 4683ecc06b support env_config_path to set the config file for DFX
1. add env_config_path for ms_context
2. add EnvConfigParser to parse config
3. add in CMakeLists
4. clang-format, cpplint
5. fix spelling in ms_context

Use EnvConfigParser in the constructed function of base_recorder,
when a recorder is initialized, its direcctory will be set as the
value from config file. In addition, recorder_manager will get the
'enable' from config file. If 'enable' is true and the path is not a
valid value, it will be the default value: './rdr'.
2021-01-28 15:10:23 +08:00
buxue 2ea8b9e738 add dict for isinstance 2021-01-21 17:30:35 +08:00
mindspore-ci-bot 55594db01c !11348 add check for outermost net inputs type and support isinstance first arg is an empty list
From: @zhangbuxue
Reviewed-by: 
Signed-off-by:
2021-01-20 19:00:08 +08:00
mindspore-ci-bot d8323b5d51 !11342 Support device memeory profiling
From: @yanghaitao1
Reviewed-by: @wangyue01,@lilongfei15
Signed-off-by: @lilongfei15
2021-01-20 16:18:42 +08:00
mindspore-ci-bot 2ea8527de3 !11314 add cache embedding for wide&deep model
From: @fangzehua
Reviewed-by: 
Signed-off-by:
2021-01-20 15:33:27 +08:00
buxue e8cd572bc2 add check for outermost net inputs type and support isinstance first arg an empty list 2021-01-20 14:48:06 +08:00
mindspore-ci-bot a58413479e !11430 add del_attr function
From: @changzherui
Reviewed-by: @kingxian,@zh_qh
Signed-off-by: @kingxian
2021-01-20 14:45:45 +08:00
fangzehua f97e19f23f add cache pass 2021-01-20 11:51:27 +08:00
yuchaojie 1932d87a26 update some op's attr name 2021-01-20 09:16:43 +08:00
changzherui 2795273753 add del_attr funciton 2021-01-20 00:38:55 +08:00
yanghaitao1 8d147deb07 profiler memory 2021-01-19 10:21:43 +08:00
mindspore-ci-bot eacc8bac89 !10755 [Numpy-Native] Add new numpy-native interfaces to mindspore.numpy
From: @yanglf1121
Reviewed-by: 
Signed-off-by:
2021-01-15 10:04:17 +08:00
yanglf1121 72903c11c8 add array_ops, math_ops and tensor ops 2021-01-14 15:32:36 +08:00
tanghuikang b1ce9fed1e Release GIL lock when SyncAsNumpy and run bprop graph in PyNative mod. 2021-01-13 09:47:13 +08:00
ling 83df854f59 pybind fix 2021-01-07 11:13:14 +08:00
ling 8a78b1f362 [MSLITE] arithmetic optimize 2021-01-06 17:58:26 +08:00
mindspore-ci-bot 3cc0360d55 !9199 add paralle split
From: @kisnwang
Reviewed-by: 
Signed-off-by:
2020-12-28 21:36:32 +08:00
kswang 8a035778b6 add parallel split 2020-12-28 15:45:58 +08:00
mindspore-ci-bot b67aaf6773 !9832 expose_allgather_fusion_to_users
From: @gong_zi_yan
Reviewed-by: 
Signed-off-by:
2020-12-28 09:54:57 +08:00
Ziyan bbf8ec82b9 expose allgather fusion interface to users 2020-12-27 17:44:45 +08:00
chenfei 2e77736443 pynative consistent run fail 2020-12-27 13:36:55 +08:00
mindspore-ci-bot 44abd94b42 !9408 [ME][Pynative]Fix mem leak problem in pynative mode
From: @chenfei52
Reviewed-by: 
Signed-off-by:
2020-12-23 21:30:10 +08:00
chenfei 1f20e552ed handle mem leak in pynative mode
use enter and leave construct
2020-12-23 17:10:58 +08:00
mindspore-ci-bot 00611b1c41 !10175 Add tensor.ndim and rename tensor.size() to tensor.size
From: @yanglf1121
Reviewed-by: @kingxian,@zhunaipan
Signed-off-by: @kingxian
2020-12-22 14:13:10 +08:00
zjun c0f02dfaf8 Opitimize pynative bprop
Signed-off-by: zjun <zhangjun0@huawei.com>
2020-12-18 17:27:44 +08:00
yanglf1121 918679daa3 add tensor.ndim and rename tensor.size() to tensor.size 2020-12-18 17:15:42 +08:00
zjun 3e1358fe94 Fix bprop second derivative
Signed-off-by: zjun <zhangjun0@huawei.com>
2020-12-17 15:11:26 +08:00
lizhenyu e3f7ae61db add ps cache manager 2020-12-10 10:31:55 +08:00
huanghui 1c5cba7b81 add data_sync in Tensor.__repr__ 2020-12-07 09:26:03 +08:00
chenfei 368e33bd67 resolve mem leak in primitive py 2020-12-03 00:30:32 +08:00
lvliang ea0d53c27c fix-bug-of-zero-in-tensor-shape-and-non-py-tensor-in-cell-hook-in-pynative 2020-11-26 10:43:59 +08:00
mindspore-ci-bot 701f07401b !8271 modify_normal_seed
From: @Somnus2020
Reviewed-by: @kingxian
Signed-off-by: @kingxian
2020-11-10 17:15:15 +08:00
lilei 4d48049b27 modify_normal_seed 2020-11-10 10:15:14 +08:00
Yi Huaijie d7faa77b5e support int64 shape 2020-11-05 21:15:49 +08:00
lizhenyu fd1d61eaf7 enbale ps mode init in server 2020-10-22 11:25:58 +08:00
mindspore-ci-bot 56bcaa5039 !7410 enable async run graph
Merge pull request !7410 from kisnwang/enable-async-run-graph
2020-10-22 09:12:18 +08:00