Commit Graph

155 Commits

Author SHA1 Message Date
luoyuan 3e6e4bfdd3 add core ops api and adapter new mindapi 2022-03-24 10:47:40 +08:00
ttudu adb18b82ca dynamic shape CPU & GPU 2022-03-22 13:03:31 +08:00
zhoufeng b7bb53ff73 build libmindspore_backend.so
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2022-03-17 19:14:45 +08:00
zhoufeng f49b195c39 extract common as an independent shared library
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2022-02-26 10:55:51 +08:00
shenwei41 ff75314719 upgrade ascend 20220211 2022-02-25 21:19:45 +08:00
chenlei_autodiff 5df9f01310 [GraphKernel] decouple convert_const_input_to_attr. 2022-02-15 10:27:34 +08:00
marui d47e79b04c Refactor ccsrc directories and CMakeLists files 2022-02-13 14:37:51 +08:00
huanghui f3ebb1a0e1 adapt some cpp ut for unused nodes eliminate 2022-01-21 11:30:39 +08:00
TronZhang 58f386fe2a Add Custom actor nodes and custom actor support for dynamic shape case 2022-01-07 17:31:37 +08:00
zhoufeng 9d432d029d modify dev env name
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-12-16 14:12:24 +08:00
He Wei 41dcac9c49 Replace std::unordered_map/set with robin-hood-hashing
Robin-hood-hashing (https://github.com/martinus/robin-hood-hashing)
is considered faster then std::unordered_map/set,
so we use it to improve mindspore performance.

1. robin_hood head file in `third_party/robin_hood/include`;
2. In `utils/hash_map.h` and `utils/hash_set.h`, we define:
 - mindspore::HashMap as an alias of robin_hood::unordered_map;
 - mindspore::HashSet as an alias of robin_hood::unordered_set;
3. Replace:
 - `#include <unordered_map>` --> `#include "utils/hash_map.h"`;
 - `#include <unordered_set>` --> `#include "utils/hash_set.h"`;
 - `std::unordered_map` --> `mindspore::HashMap`;
 - `std::unordered_set` --> `mindspore::HashSet`;
 - `map.insert(std::pair(key, value))` --> `map.emplace(key, value)`;
 - `[] (const std::pair<K, V> &p) {..} ` --> `[] (const auto &p) {..} `;
4. Fix issues found by switch to robin_hood:
 - AnfNodeConfig hash and equal;
 - Fix a bug in `Slice::operator==()`;
 - Fix a bug in `CNode::HasPrimalAttr()`;
 - Fix map.erase() usage bugs: `map.erase(iter++)` --> `iter = map.erase(iter)`;
 - Fix some iterator invalidated problem;
5. Some std::unordered_map/set can not replace by robin_hood:
 - As parameter of functions that exposed to python by pybind11;
 - Use bad hash that cause robin_hood::map over_flow, such as AbstractBasePtrListHasher;
6. Update cpp unit tests;
7. Add build option '-F' to enable robin_hood, default on.
2021-11-24 10:47:40 +08:00
i-robot 8bf7e28fa6 !25410 add dump flag for fusion nodes
Merge pull request !25410 from yuchaojie/ir_fusion3
2021-11-10 02:25:08 +00:00
dayschan cbb84ff580 Move IsRealKernel and IsRealCNodeKernel from AnfAlgo to AnfUtils
the function IsOneOfPrimitive and IsOneOfPrimitiveCNode is useful,
we can move them into anf.cc
2021-11-09 14:34:21 +08:00
yuchaojie 0c90aecae4 add dump flag for fusion nodes 2021-11-09 10:48:17 +08:00
zhoufeng fb17c448c2 add pass switch
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-11-01 16:33:02 +08:00
ms_yan 36a8886ca2 Revert "[feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset"
This reverts commit b077aa1cab.

Revert "[feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset"

This reverts commit 4e6f7dc97d.

delete pass_registry_test.cc

comment  hiai_nlu_model_multi.pb related  line
2021-08-23 01:46:38 +08:00
djc 4e6f7dc97d [feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset 2021-08-22 13:39:37 +08:00
zhoufeng 03a56f2bb0 alltoall exception handle
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-08-11 17:30:49 +08:00
zhoufeng 2143241092 change neighbor exchange to all to all
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-08-01 18:21:28 +08:00
LaiYongqiang 898a48d6ea fix fusion type 2021-07-13 10:44:50 +08:00
LaiYongqiang d4d6fb940d memory reuse code clean 2021-06-18 09:41:55 +08:00
zhupuxu c0099abd03 pass optimizer
Signed-off-by: zhupuxu <zhupuxu@huawei.com>
2021-06-07 09:54:24 +08:00
laiyongqiang 1533435015 replace memcpy_async with tensor move 2021-04-15 16:12:01 +08:00
LianLiguang bdc21bcf3e change infer value 2021-04-12 20:38:10 +08:00
huangbingjian 63a89925ff remove ControlDepend and its use 2021-04-07 11:30:40 +08:00
LianLiguang 8cabd090de change macro of reg infer 2021-04-02 09:07:24 +08:00
dingpeifei 3c9d8cb073 The input and output of batchnorm reverse operator increase pass in ascend platform under the mode of pynitve 2021-03-27 16:49:38 +08:00
dingpeifei 87e41aaeee IR operators of GPU and CPU are unified as batchnorm 2021-03-18 19:02:28 +08:00
LianLiguang d34074d1ac fix bug of biasadd grad's infer shape 2021-03-16 10:45:20 +08:00
mindspore-ci-bot c69142fdc1 !12968 update reshape type for 3d nodes
From: @liubuyu
Reviewed-by: 
Signed-off-by:
2021-03-10 20:33:04 +08:00
liubuyu 518818fbef reshape type for 3d nodes 2021-03-10 08:56:10 +08:00
LianLiguang 4acab81599 using cpp infer firstly 2021-03-09 15:37:17 +08:00
l00591931 cf7c5840e3 Change return 2021-03-04 09:38:43 +08:00
yuchaojie 6d195f340c add SyncBatchNorm 2021-02-27 14:32: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
mindspore-ci-bot aebe263dce !11895 unify mindir for different backend: the output num of optimizer ops, the backward of concat
From: @wangnan39
Reviewed-by: 
Signed-off-by:
2021-02-05 16:27:19 +08:00
jinyaohui 8022f9a6ed modify pack to stack 2021-02-04 18:54:31 +08:00
wangnan39@huawei.com cd9173fdfd unify the output num of optimizer ops 2021-02-04 17:46:00 +08:00
shenghong96 49144fde37 fix UT of test_topk_no_split 2021-02-02 16:52:20 +08:00
xsmq a8259bae9b disable ut cpp case(test_topk_no_split) 2021-02-02 15:52:05 +08:00
l00591931 9ec100d069 Change TensorAdd to Add, from r1.1 to master 2021-02-01 17:53:52 +08:00
lilei 9a45c4419c modify batch_normal 2021-01-13 20:59:46 +08:00
jjfeing 8fb7d11ecb fix topk help 4096 2020-11-26 19:16:37 +08:00
huanghui 1c6c280da7 fix unsorted_segment_sum_fission pass 2020-11-11 11:25:55 +08:00
Yi Huaijie d7faa77b5e support int64 shape 2020-11-05 21:15:49 +08:00
huanghui b7519b7418 unify save_graphs_path 2020-10-15 10:15:16 +08:00
mindspore-ci-bot c951d42c2c !6728 [Ascend][DynamicShape] Dynamic shape feature
Merge pull request !6728 from caifubi/dynamic_shape_share_2
2020-10-12 09:07:39 +08:00
caifubi d3b978147f Ascend Dynamic Shape 2020-10-10 19:11:47 +08:00
jjfeing 755863ebae insert memcpy when hccl node 2020-10-10 17:03:50 +08:00
mindspore-ci-bot 3048240f16 !5508 Add AdamApplyOneWithDecayAssign fusion pass
Merge pull request !5508 from YuJianfeng/adam_assign
2020-09-02 11:23:34 +08:00