Commit Graph

179 Commits

Author SHA1 Message Date
Yang Jiao 8ca2f04f6f Revert "!41872 Onehot Dynamic Compile Static"
This reverts commit d9020bc117, reversing
changes made to 987685cb31.
2022-10-18 16:14:53 +08:00
luoyuan c0c76f7f17 [MS][OPS] unsorted_segment_sum op dynamic compile static and add irfission 2022-09-29 20:24:40 +08:00
reku1997 8a3ffd2f0f add pattern to pattern pass 2022-09-20 19:54:13 +08:00
i-robot d9020bc117
!41872 Onehot Dynamic Compile Static
Merge pull request !41872 from jiaoy1224/onehot
2022-09-19 04:30:23 +00:00
Yang Jiao fc181a260d onehot dynamic to static 2022-09-16 14:30:36 +08:00
linqingke 8ec70d2f14 Fix bert and transformer performance. 2022-09-15 15:44:22 +08:00
LaiYongqiang 03d1165618 add attr rename and op type rename for ascend vm op adapter 2022-09-05 10:18:25 +08:00
LaiYongqiang e809917a50 move ascend const input to attr pass to unify mindir 2022-08-27 17:21:00 +08:00
i-robot b06f5623de
!40497 new convert op info register
Merge pull request !40497 from laiyongqiang/new_reg
2022-08-22 11:37:17 +00:00
LaiYongqiang 69355958d7 new convert op info register 2022-08-18 21:16:03 +08:00
LaiYongqiang 1af40c4d0a refactory check support functions 2022-08-18 16:46:56 +08:00
TronZhang 3f361a65eb Refactor infer interface for operator 2022-07-28 20:43:05 +08:00
lby 1aa76afba5 decoupling plugin and runtime 2022-07-20 10:48:18 +08:00
LaiYongqiang 1e95729ff1 create new cnode when node is changed 2022-07-15 15:22:08 +08:00
kswang a342686581 optimize gpu dropout 2022-07-07 15:10:50 +08:00
muxiyin 27e96dd46d support spmm 2022-06-13 15:08:09 +08:00
yiyanzhi_akane 1e18fe3574 AdamApplyOneWithDecay support dynamic shape 2022-06-08 09:53:01 +08:00
huoxinyou e7c769eebd AdamApplyOne support dynamic shape &
ScatterNd ops's indices support int64 docs
2022-06-02 20:21:33 +08:00
Zhang Qinghua a89b662b62 Change the weight parameter to FV parameter in FuncGraph, and add ST cases. 2022-05-31 14:27:15 +08:00
i-robot 640f06518f
!33157 flatten concat fission
Merge pull request !33157 from kisnwang/split-flatten-concat
2022-04-26 11:22:15 +00:00
kswang e4ef608d20 add flatten concat fission 2022-04-26 15:40:36 +08:00
ttudu ab8b8775b5 delete updateop actor 2022-04-20 09:44:11 +08:00
yuchaojie bb52ffb2a9 add TensorScatter op fission 2022-04-16 14:57:04 +08:00
Zhang Qinghua 12826b0f6c Add core/abstract/ops directory.
Move core_ops.h.
2022-04-14 19:31:28 +08:00
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