lanzhineng
9df58c20e0
opt dumpir
4 years ago
i-robot
78f0f2aa95
!30388 【MindIR导入导出】完善Function类型及支持闭包结构
Merge pull request !30388 from lanzhineng/mindir
4 years ago
lanzhineng
ca3d9d0434
function closure export & import
4 years ago
zhoufeng
f49b195c39
extract common as an independent shared library
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
4 years ago
marui
d47e79b04c
Refactor ccsrc directories and CMakeLists files
4 years ago
Margaret_wangrui
18c17a4533
[ME] Avoid buffer print repeatedly in IR
4 years ago
i-robot
1e329489c1
!29148 [MS][RDR] refactor methods of dump IR and export IR
Merge pull request !29148 from louie5/refactor-rdr
4 years ago
Zhang Qinghua
457da96c78
Share the sequence nodes between sequence abstracts.
4 years ago
Zhang Qinghua
3038c153b7
Continue to synchronize tuple/list abstract's elements if they are also tuple/list.
4 years ago
Zhang Qinghua
198b79a24d
Reuse the flags if the tuple node visited before.
4 years ago
louie5
2c22a7b0a4
refactor methods of export ir and dump ir
4 years ago
zhousiyi
b6b635f9de
specialize input0 of a CNode's abstract to make it's func_graph as
specialized func_graph if it's FuncGraphAbstractClosure.
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
TronZhang
58f386fe2a
Add Custom actor nodes and custom actor support for dynamic shape case
4 years ago
huanghui
77447b92df
fix dump level in dump ir
4 years ago
huanghui
e269eec5c0
fix error in dump ir
4 years ago
i-robot
21176d6c51
!27602 Support getattr by the item of cell list: Handle the DoSignaturePrimitive('getitem') between getattr and resolve.
Merge pull request !27602 from 张清华/opt_cell_list_getattr
4 years ago
Zhang Qinghua
3e7b73e6c7
Support getattr by the item of cell list: Handle the DoSignaturePrimitive('getitem') between getattr and resolve.
4 years ago
i-robot
7d7ec3c0c6
!27449 [ME]Add `MS` header of env var
Merge pull request !27449 from chenfei_mindspore/environment_variable_fix
4 years ago
chenfei
0ae5eb4618
add ms header of env var
4 years ago
Zhang Qinghua
135db97692
Handle the interpreted node for binary ops.
Refactoring specialize.
Adjust ir/dat/dot order.
Optimize DumpIR FV routine.
4 years ago
chenfei
c5c2b2f186
environment variables fix
debug log
4 years ago
huanghui
767caad833
Support fused node corresponding code print
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
lby
ab0efba450
easy using for kernel select log print
4 years ago
yangzhenzhang
8431ba616c
add output strategy for op init
4 years ago
chenfei
16bff0128a
code clean 1012
4 years ago
huanghui
80416a71e0
fix warnings of pclint plus, codedex and codecheck
4 years ago
yelihua
7c3994e48e
use Common::CreatePrefixPath instead of Common::GetRealPath
4 years ago
Zhang Qinghua
d75da759d6
Return Depend CNode's first node if the dependant has a value.
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
huanghui
1630dcb0c8
add subdirectory for log and ir_dump
4 years ago
zhangzhaoju
610ee46ebe
Add file open failure info while file open failed
4 years ago
lianliguang
dd57fcf8d7
add funcgraph py dump and dump more info for dynamic shape
4 years ago
buxue
0049109d11
add permission for save files
4 years ago
lianliguang
8a9b388ac3
clean CXX warning
4 years ago
chenfei
41c8f2ffb6
codex clean 2
4 years ago
mindspore-ci-bot
74b562d536
!16663 Add PrimalDebugInfo and change AD ways to add primal attrs and debug info to bprop_fg cnode.
From: @liangzhibo
Reviewed-by: @ginfung,@ginfung
Signed-off-by:
4 years ago
l00591931
8d272eed7e
Change Bprop find all nodes
4 years ago
Margaret_wangrui
a7859ecc45
clean code check
4 years ago
simson
c0b6f4f564
fix static check
4 years ago
l00591931
d1651800bf
Fix codecheck for master
4 years ago
mindspore-ci-bot
1c07ab866b
!15817 Add primal_attr to transfer attribute between forward and backward operator.
From: @liangzhibo
Reviewed-by:
Signed-off-by:
4 years ago
l00591931
befc7a9dea
Add primal_attr to link between forward and backward node attr
4 years ago
Zhang Qinghua
5ad27e7639
Evaluate the func graph in simulative stack, not to call recursively.
4 years ago
huanghui
a2ba47e18a
1. Add unique id for .dat and .dot file to avoid covering
2. Dump the end graph in gpu session and cu session
5 years ago
Islam Amin
722eb2ec5a
ascend graph dump trigger at data dump
5 years ago