zhoufeng
f49b195c39
extract common as an independent shared library
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
4 years ago
i-robot
ce5e93593d
!30301 modify error log
Merge pull request !30301 from lianliguang/change-error-log
4 years ago
lianliguang
efabace125
change error log
4 years ago
Zhang Qinghua
1357f1fe7a
Transform if tail call to parallel call.
4 years ago
lianliguang
49608835c1
support list slice
4 years ago
i-robot
e03d1bfb82
!27854 Enable hypermap to use tuple/list as input
Merge pull request !27854 from LiangZhibo/hypermap
4 years ago
Margaret_wangrui
18c17a4533
[ME] Avoid buffer print repeatedly in IR
4 years ago
l00591931
cd476c69e7
Enable hypermap to use tuple as input
4 years ago
huangbingjian
6dbe96a4b0
Handle monad inputs in signature.
4 years ago
huangbingjian
c36a85e00d
clean code
4 years ago
Zhang Qinghua
0deb008237
fixed 4e7c012 from https://gitee.com/zh_qh/mindspore/pulls/28963
Handle the primitives who transparent pass or partial use tuple/list.
4 years ago
i-robot
446ac59181
!29153 fix code check
Merge pull request !29153 from lianliguang/master
4 years ago
huanghui
082fe01780
Add flag for more tuple inputs
4 years ago
lianliguang
449d31e0b5
fix code check
4 years ago
i-robot
a28dd013f7
!28715 Eliminate unused nodes in a tuple or list node.
Merge pull request !28715 from 张清华/eliminate_tuple_unused_item2
4 years ago
Zhang Qinghua
d2572719f7
Eliminate unused nodes in a tuple or list node.
4 years ago
Margaret_wangrui
7d1f3d71ba
Optimize error message
4 years ago
zhousiyi
19e9571149
rename env_getitem/setitem to EnvironGet/EnvironGet
4 years ago
i-robot
17d8c5d2ef
!28390 Fix jvp parameter issue: Specialize the inner J parameter.
Merge pull request !28390 from 张清华/opt_jvp_parameter
4 years ago
Zhang Qinghua
34250c29b5
Fix jvp parameter issue: Specialize the inner J parameter.
4 years ago
huanghui
3a3dc95e72
optimize log when inputs not support by overload function
4 years ago
i-robot
348f8d8fd7
!28243 [ME] Fix magic numbers; Add tensor type check with np.str_.
Merge pull request !28243 from Margaret_wangrui/tensor
4 years ago
Margaret_wangrui
7ed49078dc
[ME] Fix magic numbers; Add tensor type check with np.str_
4 years ago
i-robot
16e0fc6b0b
!28192 fix cummin ops name error
Merge pull request !28192 from lianliguang/fix-cummin-ops-name-error
4 years ago
lianliguang
17d7ce0111
fix cummin ops name error
4 years ago
lianliguang
d907524023
fix error log of check axis
4 years ago
Margaret_wangrui
38ddd04c83
[ME] Optimize the error message of the operator module.
4 years ago
Margaret_wangrui
f9a88a01bc
[ME] Optimize the error message of the operator module
4 years ago
i-robot
92f4c07611
!27732 [ME] Optimize the error message of the operator module.
Merge pull request !27732 from Margaret_wangrui/operator
4 years ago
Margaret_wangrui
1a37dcfa94
[ME] Optimize the error message of the operator module
4 years ago
yujianfeng
cd2a021992
Add shard api
4 years ago
Margaret_wangrui
5d97a268a9
[ME][Fallback] Support list insert
4 years ago
i-robot
66ca491534
!27300 Fix some typo issues
Merge pull request !27300 from hewei/core_api
4 years ago
i-robot
0d62d2441d
!27329 [ME] Modify some format of the error report.
Merge pull request !27329 from Margaret_wangrui/operator
4 years ago
He Wei
4f04757e16
Fix some typo issues
1. Sequeue --> Sequence
2. Interger --> Integer
4 years ago
Margaret_wangrui
cc5888e8ed
[ME] Modify some format of the error report.
4 years ago
i-robot
17f63ad3a7
!27310 fix graph slice error
Merge pull request !27310 from lianliguang/fix-slice-bug
4 years ago
i-robot
6b92d9bd4d
!27224 [ME] Optimize the error message of the operator module
Merge pull request !27224 from Margaret_wangrui/operator
4 years ago
lianliguang
d5eaec16b5
fix graph and pynative slice error
4 years ago
i-robot
aeb2cccbe6
!27152 [bug]fix functional grad with grad_position twice bug
Merge pull request !27152 from chenzhuo/grad
4 years ago
Margaret_wangrui
0f4a276b7e
Optimize the error message of the operator module
4 years ago
chenzhuo
287bcdd783
fix grad twice position bug
4 years ago
i-robot
d224c7dd18
!27192 fix error log
Merge pull request !27192 from lianliguang/xbg
4 years ago
lianliguang
40c3995b98
fix error log
4 years ago
lianliguang
9d2101addf
fix api code error and error log
4 years ago
lianliguang
5864d6a006
modify some eroor log
4 years ago
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.
4 years ago
huangbingjian
e623173965
clean code
4 years ago
zhang__sss
8bae4d9d50
grad
4 years ago
zhangzhaoju
214740e710
Correcting some error type of log
4 years ago