chujinjin
d20c9d93d8
support pynative heterogeneous
4 years ago
zhangzhaoju
d34f14e324
white list for syntax exception
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
caifubi
38352c1ba8
PyNative MindRT Op Lazy Build
4 years ago
7347157+joylvliang@user.noreply.gitee.com
272b7ba410
fix_pc_lint_problem
4 years ago
zjun
06b4865139
Fix high grad cache
Signed-off-by: zjun <zhangjun0@huawei.com>
Modify currg to forwardfg
35767d9b3e Modify currg to forwardfg
Fix grad order
b4858330e1 Fix grad order
4 years ago
i-robot
0bb81093f8
!25583 Fix clean code
Merge pull request !25583 from zjun/fix_code_check_1
4 years ago
i-robot
efc33a8225
!25745 F.grad support get gradient by position
Merge pull request !25745 from zhang_sss/grad
4 years ago
zhang__sss
8bae4d9d50
grad
4 years ago
7347157+joylvliang@user.noreply.gitee.com
d6084071d0
using_memcpy_when_size_large_then_securec_max_size
4 years ago
7347157+joylvliang@user.noreply.gitee.com
bccb3d0db6
enable_psenet_run
4 years ago
chujinjin
26410ccf75
optimize implicit convert error message
4 years ago
zjun
8d3f74371e
Fix clean code
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
zjun
12c988afe0
Fix modify param by self
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
looop5
0b34bf33bc
add custom op pynative testcases
4 years ago
i-robot
3e16031cfa
!24010 Code self check for master
Merge pull request !24010 from JoyLvliang/code_self_check_for_master
4 years ago
7347157+joylvliang@user.noreply.gitee.com
b3bb415136
code_self_check_for_master
4 years ago
caifubi
8dc2d1b84c
Cherry-pick code from enterprise
4 years ago
zjun
fc6af890f3
Fix exception bug
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
i-robot
e9b9bdd96b
!23601 pclint and codedex clean
Merge pull request !23601 from JoyLvliang/pclint_and_codedex
4 years ago
i-robot
fb58cfa273
!23414 update pynative profiling codes and delete some useless code
Merge pull request !23414 from lvchangquan/master
4 years ago
7347157+joylvliang@user.noreply.gitee.com
9fed6b3513
pclint_and_codedex
4 years ago
lvchangquan
b908f40d94
delete some useless codes and update pynative profiling codes
4 years ago
7347157+joylvliang@user.noreply.gitee.com
6e59598f99
correct_wrong_info_when_using_ms_function_with_bprop
4 years ago
zjun
a89fe9507a
Fix res clear
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
7347157+joylvliang@user.noreply.gitee.com
4b019260da
print_debug_info_before_release_obj
4 years ago
i-robot
bbdacd41f4
!20585 add security isolate for save_graphs
Merge pull request !20585 from huanghui/add-security-isolate-for-DumpIR
4 years ago
i-robot
848f31b6d9
!23263 Enable PyNative LAZY BUILD in Cell automatically
Merge pull request !23263 from caifubi/master-enable-async-build-in-cell
4 years ago
huanghui
ba66c0d491
add security isolate for save_graphs
4 years ago
zjun
69b2d9455c
Fix grad operation would be affected by different order
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
caifubi
9357931761
Enable PyNative Lazy Build in Cell automatically
4 years ago
7347157+joylvliang@user.noreply.gitee.com
8635d9cf70
adjust_the_operation_of_resource_clean
4 years ago
7347157+joylvliang@user.noreply.gitee.com
c93ac8c098
add_graph_flag_info_for_phase
4 years ago
7347157+joylvliang@user.noreply.gitee.com
be267185bf
optimize_codes_for_ms_function
4 years ago
zjun
27c114f692
Fix Add None problem
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
7347157+joylvliang@user.noreply.gitee.com
14d24d4793
update_bprop_error_information
4 years ago
i-robot
e57783ae9a
!22734 Fix bug of parameter name not same
Merge pull request !22734 from JoyLvliang/fix_bug_of_param_name_not_same
4 years ago
7347157+joylvliang@user.noreply.gitee.com
bcbab67c65
fix_bug_of_param_name_not_same
4 years ago
zjun
b5dfe05dd0
Use cache for mix
77b4f906af
use cell input cast
83fb06b93c
time 115 ok
15288c220c
Add ostringstream
4713a6ca57
4 years ago
caifubi
4c6fa18f6d
Solve the problem of coredump during continuous execution of use cases
4 years ago
Zhang Qinghua
a137fa1d0b
Optimize the Executors routines.
- Fix the key generating.
- Distinguish the executors.
4 years ago
i-robot
0531edfa67
!20918 Eliminate forward CNode in grad graph decorated by ms_function
Merge pull request !20918 from JoyLvliang/eliminate_forward_cnode_in_grad_graph_decorated_by_ms_function
4 years ago
i-robot
29caae557f
!22494 fix high grad bug
Merge pull request !22494 from zjun/fix_high_grad
4 years ago
caifubi
537fce0ee1
PyNative Kernel Parallel Build
1. Create Tensor and DeviceAddress for output before Launch.
2. Push Launch/Build Task to Queue and execute togather.
4 years ago
7347157+joylvliang@user.noreply.gitee.com
0fb07a6377
eliminate_forward_cnode_in_grad_graph_decorated_by_ms_function
4 years ago
zjun
892287a1bc
Fix high order bug
Signed-off-by: zjun <zhangjun0@huawei.com>
4 years ago
lvchangquan
bab311f0c7
update pynative profiling codes in fp and bp
4 years ago
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
4 years ago
djc
b077aa1cab
[feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset
4 years ago
djc
4e6f7dc97d
[feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset
4 years ago