i-robot
0245490acb
!43657 remove usage of ScalarToArray
...
Merge pull request !43657 from zhujingxuan/replace
2022-10-19 01:23:45 +00:00
zhujingxuan
1fd6d59f90
remove usage of ScalarToArray
2022-10-13 14:34:06 +08:00
LaiYongqiang
88f5703eaa
format some op and function name
2022-10-13 10:08:55 +08:00
zhouxulin2
f75acbc2a6
fix bug of implicit conversion between float32 and float64
2022-09-19 18:24:49 +08:00
liuluobin
37e69e4c1c
Support config parameter layout on pynaive_shard
2022-08-26 12:27:26 +08:00
Zhang Qinghua
bbfe665977
Fix the problem when use Parameter as top func graph arguments.
2022-07-28 21:00:37 +08:00
liangchenghui
7b0ea2e0e5
Add col2im and csr_sparse_matrix_to_sparse_tensor operator primitive interface.
2022-06-05 13:58:39 +08:00
huangbingjian
d6485b82f6
Remove support for dataclass
2022-04-24 09:12:50 +08:00
lianliguang
dd34e029a4
fix bug of pybind
2022-04-22 10:50:42 +08:00
lianliguang
11b4836040
support list slice assign
2022-04-20 09:32:05 +08:00
Zhang Qinghua
12826b0f6c
Add core/abstract/ops directory.
...
Move core_ops.h.
2022-04-14 19:31:28 +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
lianliguang
49608835c1
support list slice
2022-02-17 09:47:26 +08:00
Zhang Qinghua
d2572719f7
Eliminate unused nodes in a tuple or list node.
2022-01-07 21:30:01 +08:00
zhousiyi
19e9571149
rename env_getitem/setitem to EnvironGet/EnvironGet
2022-01-04 02:17:30 +00:00
i-robot
92f4c07611
!27732 [ME] Optimize the error message of the operator module.
...
Merge pull request !27732 from Margaret_wangrui/operator
2021-12-20 01:05:55 +00:00
Margaret_wangrui
1a37dcfa94
[ME] Optimize the error message of the operator module
2021-12-18 14:28:45 +08:00
yujianfeng
cd2a021992
Add shard api
2021-12-15 11:05:11 +08:00
i-robot
6b92d9bd4d
!27224 [ME] Optimize the error message of the operator module
...
Merge pull request !27224 from Margaret_wangrui/operator
2021-12-07 01:21:38 +00:00
Margaret_wangrui
0f4a276b7e
Optimize the error message of the operator module
2021-12-06 17:25:42 +08:00
lianliguang
40c3995b98
fix error log
2021-12-03 23:13:03 +08:00
lianliguang
5864d6a006
modify some eroor log
2021-11-26 09:24:19 +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
Margaret_wangrui
7b93e4e87c
1、Optimize the error message in operator 2、add operator test cases
2021-10-23 10:16:59 +08:00
huanghui
ba66c0d491
add security isolate for save_graphs
2021-09-14 10:24:12 +08:00
lianliguang
4d7b7649e9
remove the useless PrimType
2021-04-20 10:16:36 +08:00
dingpeifei
87e41aaeee
IR operators of GPU and CPU are unified as batchnorm
2021-03-18 19:02:28 +08:00
l00591931
bbdb050fc7
Change switch to Switch
2021-03-11 17:06:55 +08:00
l00591931
680324f225
Change make tuple in core.ops
2021-03-05 10:54:33 +08:00
l00591931
cf7c5840e3
Change return
2021-03-04 09:38:43 +08:00
mindspore-ci-bot
b189f177bb
Change tuple_getitem to TupleGetItem and some other ops, merge from r1.1 to master
2021-02-02 15:54:15 +08:00
zhouyuanshen
d1e6878011
remove dot
2021-02-01 09:39:27 +08:00
Zhang Qinghua
8310236ff1
Set trace info of Primitive CNode only for equiv out node, not the whole fprop function.
2020-12-01 10:05:20 +08:00
Yi Huaijie
d7faa77b5e
support int64 shape
2020-11-05 21:15:49 +08:00
zhousiyi
d0e58dd765
remove ccsrc/common.h
...
replace frontend/operator/ops.h in backend with base/core_ops.h as
backend should not use any frontend-only primitive
2020-08-20 09:34:07 +00:00
liubuyu
45b6600001
mv cc file that end with py to pybind
2020-08-12 14:50:18 +08:00
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
2020-08-03 17:09:31 +08:00
liubuyu
f4bc0bc9fe
move the dependency of utils to core
2020-07-27 10:28:46 +08:00
Zhang Qinghua
7b69565d91
Move abstract function to core abstract folder.
2020-07-21 21:25:32 +08:00
WilliamLian
50e2fda52d
refactor primitive ComputeFunction function
2020-07-16 14:36:04 +08:00
liubuyu
43c79eb853
mindspore path adjust
2020-07-14 18:07:28 +08:00
WilliamLian
9682d08d96
refactor primitive hook function
2020-07-13 17:27:39 +08:00
Zhang Qinghua
bde889ffdf
Decouple the exception routines from Python.
2020-07-09 11:19:16 +08:00
wuyongkang
e606068585
cache bprop instead of fprop
2020-06-28 14:57:54 +08:00
huangdongrun
9522f59b87
support for tensor indexing in pynative
...
support tensor slice using constexpr
remove tensorslice metagraph
add pynative testcases
2020-06-11 19:14:22 +08:00
kingfo
38436f929f
move hook function to primtivePy class
2020-06-10 15:33:46 +08:00
leopz
4508134ceb
add tensor_minnie and separate py from ir
2020-05-28 14:26:26 +08:00
huangdongrun
1159f2b11e
add prim infer attr cache
...
modify infer to get abstract value and attr value map together
support get attr in specialize
clone primitive when specialize if attribute is not the same with
infered attribute
2020-05-26 16:19:58 +08:00
leopz
04763b8b76
move signature to primitivepy and bprop_func to utils
2020-05-20 18:06:36 +08:00