Compare commits

...

367 Commits
master ... r1.0

Author SHA1 Message Date
mindspore-ci-bot d0f5b092de !11524 modify model_zoo frcnn's import and numpy version rely
5 years ago
changzherui 5220191728 modify frcnn import and numpy version
5 years ago
mindspore-ci-bot 2b6981215d !10955 dataset: move import tf into inner function instead outside
5 years ago
ms_yan cad6c178f7 move import tensorflow into class tfrecord_to_mr
5 years ago
mindspore-ci-bot 2dde52bfeb !10661 remove default word in kwargs
5 years ago
mwang cd92380b49 remove default word
5 years ago
mindspore-ci-bot 9a5e725a0e !9517 remove is_grad
5 years ago
mindspore-ci-bot 0a3a19c1a2 !9624 add cache support fusion op build
5 years ago
mindspore-ci-bot 85603a452a !9965 pick some needed features from master merge to r1.0
5 years ago
buxue 23e10952ea optimize list getitem in bprop
5 years ago
l00591931 97b403f221 Add backprop and add some comments
5 years ago
l00591931 66ca2082f2 enumerate function and enumerate test case added
5 years ago
l00591931 ffa81dd446 Add Ones and Zeros operators
5 years ago
l00591931 6f2789ac13 Enable multi-dimensional list value assignment
5 years ago
mindspore-ci-bot 5405b39f0b !9748 fixed the crash when terminate is pressed in MindInsight
5 years ago
Adel Shafiei e388220751 fixed the crash when terminate is clicked in MindInsight
5 years ago
mindspore-ci-bot 41ea61b83a !9697 modify tsd open failed description
5 years ago
mindspore-ci-bot 86c64e8fb3 !9692 output warning info when memroy > 95% in batchop timestamp - r1.0
5 years ago
jinyaohui ec0c17a7e0 modify tsd open desc
5 years ago
jonyguo d2cbdb9b4d output warning info when memroy > 95% in batchop timestamp
5 years ago
jjfeing d038054eb7 add fusion build cache
5 years ago
mindspore-ci-bot 1d1675c873 !9493 bug fix for profiling register twice
5 years ago
wanyiming ec7c9c8314 remove_is_grad
5 years ago
liubuyu 2b39a69efa bug fig for profiling register twice
5 years ago
mindspore-ci-bot e190586475 !9419 code-sync-1203
5 years ago
wuweikang 9d798c604e code-sync-1203
5 years ago
mindspore-ci-bot 2c8e5005b8 !9365 fix version check log level
5 years ago
mindspore-ci-bot 437eac002c !9310 [MD] dynamic shape for ascend in sink mode
5 years ago
zhoufeng 9fb7f00c65 fix version check log level
5 years ago
liyong 0575cba1ae add dynamic shape support
5 years ago
mindspore-ci-bot 40a43dace0 !9231 Handle SIGTERM signal to r1.0
5 years ago
mindspore-ci-bot bba7c9732d !8907 fasterrcnn add export.py and update readme.
5 years ago
zhoufeng e508fee331 handle sigterm signal
5 years ago
linqingke 81c6acadc1 fasterrcnn add export.py in r1.0
5 years ago
mindspore-ci-bot 9fe624527b !8847 [ModelZoo]Fix bgcf readme error
5 years ago
zhanke 4695e56e34 fix readme error
5 years ago
mindspore-ci-bot 75a3e3459c !8741 [MD] Fix a minddata issue that pyfunc multiprogress can't exit normally
5 years ago
mindspore-ci-bot f7ad08d73b !8664 [MD] Fix a minddata issue that pyfunc multiprogress can't exit normally
5 years ago
mindspore-ci-bot 80c05e193b !7956 Fix SmoothL1Loss op sigma attr problem.
5 years ago
mindspore-ci-bot 3142534d1d !8324 fix nccl bug in gpu docker container
5 years ago
mindspore-ci-bot 3317a7d52e !7912 update ModelZoo README and googlenet README
5 years ago
wuweikang 44c4eaa12c fix nccl bug in gpu docker container
5 years ago
liyanliu 77eb2c3890 update Model Zoo README and googlenet README
5 years ago
mindspore-ci-bot 61cde32b8a !8256 README update
5 years ago
root 6c188d736b README update
5 years ago
mindspore-ci-bot 677a5ac641 !8174 【轻量级 PR】:update RELEASE.md.
5 years ago
mindspore-ci-bot 1d9423dd68 !8119 update wrong comment for 'resnext50/densnet121/vgg16'
5 years ago
mindspore-ci-bot d9fc2a9963 !8082 add Adam CPU operator
5 years ago
CaoJian eb598119de update wrong comment
5 years ago
zhaoting b7a4becb4a add Adam CPU op
5 years ago
shenwei41 bfd0ee1ace update RELEASE.md.
5 years ago
mindspore-ci-bot 3cffa273de !7921 update googlenet readme
5 years ago
mindspore-ci-bot 766caf637d !8012 GPU update resnet50 r1.0 readme
5 years ago
mindspore-ci-bot 052b2d0a3a !7975 optimized the deepfm network structure
5 years ago
CaoJian 0d38e7118c update googlenet readme
5 years ago
wsq3 97124fbf02 Optimized the deepfm network structure
5 years ago
mindspore-ci-bot 9d1404deba !7954 add hccl timeout and edit readme
5 years ago
VectorSL c9af71f5bb update resnet50 readme
5 years ago
mindspore-ci-bot 6ac0209ae1 !7955 fix error print in thor optimizer training log for r1.0.1
5 years ago
mindspore-ci-bot 44d9b7f61a !7949 modify alexnet shell
5 years ago
mindspore-ci-bot 1047fc3fc9 !7919 update lstm README
5 years ago
mindspore-ci-bot feea03ab1e !7920 update vgg16 readme
5 years ago
yoonlee666 0cee1af4db add hccl timeout and edit readme
5 years ago
wangmin 83c0101a20 fix bug of print error log in thor optimization training log
5 years ago
liangchenghui 9d0d528e99 Fix SmoothL1Loss op sigma attr problem.
5 years ago
mindspore-ci-bot d8a3ec4ead !7886 opt maskrcnn dataset performance
5 years ago
wukesong 1c11065a0e modify readme
5 years ago
mindspore-ci-bot 18a2e1d52b !7896 Fix cannot find python-dev
5 years ago
gengdongjie cf1d0c3729 opt maskrnn preprocessing pref
5 years ago
CaoJian be2fe6807e update lstm README
5 years ago
CaoJian f686bdbb85 update vgg16 readme
5 years ago
zhoufeng 5c920b5dee fix cannot find python-dev
5 years ago
mindspore-ci-bot fda47a6159 !7882 Fix typo in version-check
5 years ago
zhoufeng 74b6d6d69b fix typo in version-check
5 years ago
mindspore-ci-bot 49d8be1c5e !7787 version update to 1.0.1
5 years ago
mindspore-ci-bot e79912213e !7807 GPU update resnet50 readme
5 years ago
VectorSL bf4f0b4a7d gpu resent50 update readme
5 years ago
wuweikang 3e77f19f31 version update
5 years ago
mindspore-ci-bot 432632c57b !7763 update nccl cmake version
5 years ago
ZPaC 8150ba5dd3 update nccl cmake version
5 years ago
mindspore-ci-bot 3203029862 !7634 fix resnet50_quant run_train bug
6 years ago
yuchaojie a76b5e5597 fix resnet50_quant run_train bug
6 years ago
mindspore-ci-bot 84c0bc53eb !7603 modify resnet50-quant readme
6 years ago
mindspore-ci-bot f8c1abc5d7 !7516 Amend deeplabv3 readme in r1.0
6 years ago
mindspore-ci-bot fad3625ca6 !7587 fix typos in README
6 years ago
yuchaojie b37debbef5 modify resnet50-quant readme
6 years ago
gengdongjie 1eca0b0245 fix issues
6 years ago
jzg e9ea7f73a0 Amend deeplabv3 readme in r1.0.
6 years ago
mindspore-ci-bot 093653628b !7344 [lite] fix unsupported op print and caffe multiple inputs
6 years ago
mindspore-ci-bot 0116a59ddb !7480 Add Softplus,SoftplusGrad for old backend.
6 years ago
liangchenghui 04be406d80 Add Softplus,SoftplusGrad for old backend..
6 years ago
mindspore-ci-bot 5e94b79ff6 !7448 fix some ssd gpu loss is inf
6 years ago
root 4051a92c7e fix some ssd gpu loss is inf
6 years ago
mindspore-ci-bot b2fb6c22e2 !7156 update the lastest version of modle files and title in the English README is incorrect
6 years ago
hukang hwx963878 04c37e0c54 update new 410 category modles on branch r1.0
6 years ago
xuanyue 23c7974c63 fix unsupported op print and caffe multiple inputs
6 years ago
mindspore-ci-bot 1ba0dfbd65 !7356 change c++_shared to c++_static
6 years ago
mindspore-ci-bot 6be7e092bd !7347 GPU model zoo lenet remove amp
6 years ago
yeyunpeng 05511e3006 change c++_shared to c++_static
6 years ago
mindspore-ci-bot 47adfb7d56 !7338 fix for se-resnet50 accurancy
6 years ago
mindspore-ci-bot 6be520083c !7301 add default path support for nnae package
6 years ago
VectorSL f8fa51002f gpu modelzoo lenet is not suitable for amp
6 years ago
qujianwei 34daea148e fix for se-resnet50 accu problem
6 years ago
mindspore-ci-bot a3a5e1e4eb !7324 fix warpctc accuracy
6 years ago
baihuawei 2c5f1cb019 fix warpctc accuracy
6 years ago
mindspore-ci-bot 6a02117e9c !7255 fix vgg16 eval shell script bug
6 years ago
yanghaoran f15789fffb add default path support for nnae package
6 years ago
CaoJian 575687d6e4 fix vgg16 eval shell script bug.
6 years ago
mindspore-ci-bot 0e5f72255a !7231 sync-from-trunk-to-blue-zone-1012
6 years ago
mindspore-ci-bot bf42c4fc0c !7154 edit readme
6 years ago
mindspore-ci-bot 65a21139b3 !7208 update alexnet conv channel.
6 years ago
mindspore-ci-bot a0dec66025 !7212 fix readme file of resnet_thor for r1.0
6 years ago
wuweikang 5cf8b8b48a sync-from-trunk-to-blue-zone-1012
6 years ago
mindspore-ci-bot 2cbb5145c4 !7225 fix compile training
6 years ago
lz a2f0e7fd16 fix train compile
6 years ago
wangmin 1e556c2a07 fix readmefile for resnet50_thor
6 years ago
mindspore-ci-bot afa5ed3e5c !7145 Force link msprof shared library
6 years ago
linqingke f4818fdaff update alexnet conv channel.
6 years ago
zhoufeng 668c1bd739 force link msprof.so
6 years ago
mindspore-ci-bot d07afafc2d !7185 psenet added
6 years ago
wsq3 adf7742372 modified readme.md in psenet
6 years ago
mindspore-ci-bot f06ce13c7e !7160 fix bugs of op DynamicRNN, LayerNorm, ReduceAny and Neg
6 years ago
mindspore-ci-bot 563992420b !7152 fix some typos in resnet readme file
6 years ago
mindspore-ci-bot f1ca2dbaa5 !7125 args parse debug and
6 years ago
lihongkang f4367c324c fix bugs
6 years ago
yoonlee666 85aee459d3 edit readme
6 years ago
guoqi 5fb1e4813e fix some typos in resnet readme file, and update the performance to 256 batchsize.
6 years ago
mindspore-ci-bot a64b959b9f !7130 [MSLITE] fix mindspore-static lib
6 years ago
mindspore-ci-bot 3fa5dd4495 !7112 sync-from-trunk-to-blue-zone-1009
6 years ago
wuweikang da5fef8460 sync-from-trunk-to-blue-zone-1009
6 years ago
mindspore-ci-bot 323212d526 !7113 Alexnet network define update.
6 years ago
xuanyue 54a5f7689a fix mindspore-static lib
6 years ago
Payne 281ec04b10 debug args parse
6 years ago
mindspore-ci-bot 444a42f309 !7028 yolov3 add weight convert.
6 years ago
linqingke 305af0ab89 yolov3 add weight convert.
6 years ago
mindspore-ci-bot 3ade2c3572 !7104 set num threads for opencv
6 years ago
mindspore-ci-bot 76e284619e !7097 modify lenet to mixed precision
6 years ago
mindspore-ci-bot 542c71af3a !6924 fix windows version bug
6 years ago
yanghaitao1 308715d00e set num threads for opencv
6 years ago
lyvette 6f8866b336 modify windows version
6 years ago
guoqi a6aef83428 modify lenet to mixed precision
6 years ago
mindspore-ci-bot 39f981c6a0 !7075 add seed to testcase
6 years ago
mindspore-ci-bot 1b3bf6644c !7058 replace BasicLSTM with DynamicRNN, add export.py
6 years ago
mindspore-ci-bot e47f090094 !7072 fix securec download links due to mistakes made by openeuler community
6 years ago
wilfChen c17c9b18b3 broadcast testcase seed
6 years ago
yanghaoran 29a05191f6 fix securec download links due to mistakes made by openeuler community
6 years ago
gengdongjie 55b23327af warpctc: replace BasicLSTM with DYNAMICRNN
6 years ago
mindspore-ci-bot 75792c96d2 !7021 Fix async data dump failed
6 years ago
mindspore-ci-bot 5f3a44d384 !7061 fix mssim precision when dtype is uint32.
6 years ago
mindspore-ci-bot 1d961e180a !7027 add export file of resnet_thor
6 years ago
liuxiao93 67b0cc4754 fix mssim precision when dtype is uint32.
6 years ago
caifubi 4a145eb131 Fix async data dump failed
6 years ago
mindspore-ci-bot 2f52c2eb47 !7037 serving support acl mutex
6 years ago
mindspore-ci-bot fd5303b7ef !7034 update deepfm script
6 years ago
mindspore-ci-bot bd48cee8c5 !7045 Revert arena code back to use malloc
6 years ago
mindspore-ci-bot 28e3272d04 !6988 move inner.DynamicRNN to P.DynamicRNN.
6 years ago
Jesse Lee 1e25fb76a3 revert arena changes back to use malloc
6 years ago
mindspore-ci-bot 6813d20c24 !7041 fix fp16 memory leaks and maven publish
6 years ago
mindspore-ci-bot 22a6f37e08 !7036 fix bugs of op DivNoNan, Div, MSSSIM and DropoutDoMask
6 years ago
mindspore-ci-bot 7eaca7a6d0 !7026 MSLITE adjust the way to print unsupport op
6 years ago
yeyunpeng ccdce76cfd fix fp16 memory leaks and maven publish
6 years ago
xuyongfei be4b9684b7 serving support acl mutex
6 years ago
xuanyue 0d671f2c9f adjust the way to print unsupport op
6 years ago
lihongkang 1ff840832d fix bugs
6 years ago
panfengfeng 0b2fbe6838 update deepfm script
6 years ago
linqingke ced46e5357 yolov3 add weight convert.
6 years ago
wangmin 95e34a2fe9 add resnet_thor export file
6 years ago
mindspore-ci-bot ee6652e95b !6985 [Data]add input param check
6 years ago
mindspore-ci-bot 2c6ebff24b !7014 modify endofsequence for multi-machine
6 years ago
liuxiao93 22145514bf move inner.DynamicRNN to P.DynamicRNN.
6 years ago
wuweikang 4a036d29d2 modify endofsequence for multi-machine
6 years ago
mindspore-ci-bot 41c61e4516 !6999 Increase the max compiling process of tbe to 24
6 years ago
mindspore-ci-bot 7e22d9cca9 !7002 serving: ctrl+c not exit
6 years ago
mindspore-ci-bot 4265056b17 !7000 sync-code-from-trunk-0929
6 years ago
xuyongfei 14eeb35eca serving: ctrl+c not exit
6 years ago
mindspore-ci-bot 6367eca609 !6997 serving ctrl+c multi times exception fix
6 years ago
wuweikang 209e5f03bb sync-code-from-trunk-0929
6 years ago
wuyongkang 5d9f8441ce Increase the max compiling process of tbe to 24
6 years ago
xuyongfei b0a7297eeb serving ctrl+c multi times exception fix
6 years ago
mindspore-ci-bot f42454e82f !6993 adopt BoundingBoxEncode modification and disable save graph for maskrcnn
6 years ago
mindspore-ci-bot de97cc07b8 !6979 add soc version config r1.0
6 years ago
gengdongjie fcffcd662b adopt BoundingBoxEncode modification
6 years ago
jjfeing 64a324cba3 set soc version
6 years ago
mindspore-ci-bot 29baeb690d !6982 [MD] Fix minddata compose example
6 years ago
xulei2020 d1fc5d6f16 add input param check
6 years ago
xiefangqi b022081055 minddata fix compose example
6 years ago
mindspore-ci-bot a9996f64d3 !6968 support dynamic rnn and dynamic rnn grad op
6 years ago
mindspore-ci-bot e4585edac5 !6959 fix SummaryNodes in new control_flow
6 years ago
liubuyu a24c5b3231 support dynamic rnn and dynamic rnn grad op
6 years ago
mindspore-ci-bot 31d1a7051b !6951 Support ExtractImagePatches Op
6 years ago
mindspore-ci-bot e8b676a145 !6952 Check and set ASCEND_OPP_PATH env
6 years ago
mindspore-ci-bot a922337f40 !6902 Add check if the seed is a bool
6 years ago
Margaret_wangrui 4df609c94e fix SummaryNodes in new control_flow
6 years ago
mindspore-ci-bot 3638886ec6 !6936 Synchronize r1.0 with master to deeplabv3
6 years ago
mindspore-ci-bot 2c36901817 !6941 Fix precision of GroupNorm when the shape is small.
6 years ago
zhoufeng 9fc6783fd3 check and set ASCEND_OPP_PATH env
6 years ago
liubuyu 29cf4bedfd support ExtractImagePatches op
6 years ago
mindspore-ci-bot cf58dcf3ef !6942 specify train converter
6 years ago
mindspore-ci-bot 6807c98696 !6939 MSLITE fix onnx weightquant and tflite string-data copy
6 years ago
lz de2ed54fd5 specify train converter
6 years ago
liuxiao93 dd2466e730 fix precision of GroupNorm when the shape is small.
6 years ago
xuanyue f4e4c3de59 fix onnx weightquant and tflite string-data copy
6 years ago
jzg ec2f958a2c Synchronize r1.0 with master to deeplabv3.
6 years ago
mindspore-ci-bot 6be7aae403 !6915 fix log print
6 years ago
mindspore-ci-bot 40568790e5 !6916 [MD] Fix timeout of GeneratorDataset multiprocessing
6 years ago
luoyang 8c9abf35ab Fix timeout of GeneratorDataset multiprocessing
6 years ago
mindspore-ci-bot 0686e53fbc !6909 fix RuntimeError in TinyBert
6 years ago
panfengfeng 70722e491c sync log print from master tp r1.0
6 years ago
mindspore-ci-bot 57bbf893c2 !6896 bugfix tinybert
6 years ago
yanghaitao1 32a28da71c fix tinybert failes if run 1p
6 years ago
peixu_ren f024432145 Add check if the seed is a bool
6 years ago
yoonlee666 c7aa2b6481 bugfix tinybert
6 years ago
mindspore-ci-bot f87ab5a03f !6826 add tokenization and score file
6 years ago
mindspore-ci-bot 045acffaf5 !6858 MSLITE set convert ms file permission and get all unsupported node when parsing
6 years ago
mindspore-ci-bot 7f6800bc2c !6856 [MS][LITE]Modified the download link
6 years ago
mindspore-ci-bot 28cb04a856 !6872 Add missing macro for tensor function call
6 years ago
mindspore-ci-bot c93fe5203d !6874 update nasnet script
6 years ago
xuanyue 95c177482a set convert ms file permission and get all unsupported node when parsing
6 years ago
mindspore-ci-bot c0caf95c59 !6849 fix bugs of op LeakyReLU, Argmax, Select and ReduceAll
6 years ago
mindspore-ci-bot e266a0faa6 !6863 update graphengine & adapt to r1.0
6 years ago
mindspore-ci-bot 2e40ac6465 !6869 mobilenetv2+ssd gpu
6 years ago
mindspore-ci-bot ed9cc2c043 !6812 [MD] Fix transforms train failed problem
6 years ago
Eric 5a0a35ed47 Add missing macro
6 years ago
panfengfeng bf3d0b1589 update nasnet scripts for r1.0
6 years ago
root dd2c40fed6 mobilenetv2+ssd gpu
6 years ago
xiefangqi ad8b042193 Fix transforms train failed problem
6 years ago
wuweikang cc58bda7fc update graphengine & adapt to r1.0
6 years ago
gongdaguo 4d19aaa72e Modify download link
6 years ago
mindspore-ci-bot a93476ba5d !6793 Add tflite parsers for PRELU and NEG operators and fix two little bugs in tflite quantize and dequantize parsers
6 years ago
lihongkang 3e9f717725 fix bugs
6 years ago
mindspore-ci-bot eb5033f8d9 !6806 add tinybert hub file
6 years ago
mindspore-ci-bot 10428c1188 !6830 update invalid links.
6 years ago
mindspore-ci-bot 4b894a816f !6834 fix spelling: andriod->android
6 years ago
zhangyi 235343f6f9 update invalid links.
6 years ago
xsmq 5f72e79baa fix spelling andriod
6 years ago
AGroupofProbiotocs 7786342511 add tflite parsers for PRELU and NEG operators
6 years ago
yoonlee666 895be7da87 add tokenization and score file
6 years ago
mindspore-ci-bot 6caf53008a !6805 fix opencl mem leak
6 years ago
mindspore-ci-bot 14b496bcab !6798 mobilenetv2 debug and modify readme
6 years ago
mindspore-ci-bot 6bf72bf770 !6791 Fix that 'Primitive' appears twice in api.
6 years ago
wandongdong 8523b68894 fix opencl mem leak
6 years ago
Payne 9d06442c0d mobilenetv2 debug and modify README.md
6 years ago
liuxiao93 e1dcc0a975 Remove Primitive from functional.__all__.
6 years ago
yoonlee666 7af8e0a9cf add tinybert hub
6 years ago
mindspore-ci-bot 685a77c7c3 !6718 [MSLITE] Fix bug of resizeNearestNeighbor and expandDims operators.
6 years ago
mindspore-ci-bot 211106fc0f !6777 [MSLITE] Fix bug of leakyRelu int8.
6 years ago
mindspore-ci-bot c218e8b6ca !6783 Fix some bug in API.
6 years ago
mindspore-ci-bot b1bc9f6ed2 !6790 update RELEASE.md
6 years ago
wuweikang 5af655f9f0 update RELEASE.md
6 years ago
mindspore-ci-bot 81241e137b !6779 [MS][LITE]fix windows compile bug
6 years ago
lyvette 438e05719e fix windows compile bug
6 years ago
liuxiao93 51b57a83ab fix api of nn.PSNR.
6 years ago
mindspore-ci-bot 3790785824 !6745 revert tile.py
6 years ago
mindspore-ci-bot 532c6df02b !6732 mobilenetv2 rename incremental learn to fine tune
6 years ago
wsc 0cac75f8ad Fix bug of leakyRelu_Int8 operator.
6 years ago
wuweikang 501e01470e revert tile.py & sink_size = get_dataset_size()
6 years ago
mindspore-ci-bot 15e144fdea !6770 Fix api bug for PReLU op.
6 years ago
mindspore-ci-bot fdc41ab843 !6765 [MS][LITE][GPU]fix bug: softmax precision, model random zero
6 years ago
mindspore-ci-bot a6263d2837 !6750 fix infer tensor compile error
6 years ago
mindspore-ci-bot fafc7ee919 !6767 fix the bug of download timeline in GPU show time is abnormal
6 years ago
mindspore-ci-bot 29eadf178f !6766 modify atlas installer package default directory
6 years ago
chenzupeng 5562cd4551 fix bug: softmax precision, model random zero
6 years ago
liuxiao93 b3b59c30a6 fix api bug about PReLU op.
6 years ago
mindspore-ci-bot 10e384674f !6720 modify distribution type note
6 years ago
gzhcv 611a359243 gpu_timeline(python code)
6 years ago
Payne e237679f1b mobilenetv2: incremental learn -> fine tune
6 years ago
mindspore-ci-bot f8086ab525 !6763 Update api comments.
6 years ago
yanghaoran af2f67139f modify atlas installer package default directory, due to changes of installer packages
6 years ago
zhangyi 3f0ee40937 fix the format of api comments.
6 years ago
mindspore-ci-bot fe409a97aa !6708 [MSLITE]modify version for windows build
6 years ago
kswang a8e7e283a8 fix infer tensor compile error
6 years ago
mindspore-ci-bot 2680bd2c76 !6697 Check seed of non negative
6 years ago
mindspore-ci-bot 7acc66a3a5 !6727 modify transformer hub file
6 years ago
mindspore-ci-bot 8d4c9024d4 !6721 update submodule akg to branch r1.0
6 years ago
yuchaojie b71f3b7fcd modify transformer hub file
6 years ago
mindspore-ci-bot d739fc186d !6678 fix codeDex
6 years ago
mindspore-ci-bot 8d2a936eee !6715 modify quant export annotation
6 years ago
mindspore-ci-bot 0bb1bfab81 !6712 remove CTCLossV2
6 years ago
mindspore-ci-bot 6f0e32e0a2 !6701 Set top graph parameters' name as original graph parameters.
6 years ago
looop5 b662024b6d update submodule akg to branch r1.0
6 years ago
mindspore-ci-bot c0efd76240 !6711 fix bugs of op Debug, ReLUV2, EditDistance and Dense
6 years ago
baihuawei 22d3d4e2ef remove CTCLossV2
6 years ago
wsc 45214a9dfa Fix bug of resizeNearestNeighbor and expandDims operators.
6 years ago
mindspore-ci-bot 05aefd574e !6686 Disable pynative zero like optimization
6 years ago
yuchaojie b270671c39 modify quant export annotation
6 years ago
mindspore-ci-bot 41e94e2b07 !6706 【MSLITE】remove train header files
6 years ago
mindspore-ci-bot be4583e74b !6704 Fix core dump in pynative mode
6 years ago
mindspore-ci-bot 0081ed0fe5 !6692 Fix some safe warnings in debugger
6 years ago
mindspore-ci-bot d42f5bb72b !6698 Add IFMR op for new backend(r1.0).
6 years ago
lyvette a2cdf8e5d6 modify version for windows build
6 years ago
lvliang c8ca295c04 fix-bug-pynative-gpu-memory-not-release
6 years ago
mindspore-ci-bot 22cd1ebd33 !6694 [MS][LITE][GPU]fix bug: run model shutdown
6 years ago
lz c180da092f remove train header files
6 years ago
peixu_ren 4aca47801c Check seed of non negative
6 years ago
HuangBingjian 8709186e03 fix coredumpd while import regex
6 years ago
liuxiao93 485bd24e34 Add IFMR op for new backend(r1.0).
6 years ago
mindspore-ci-bot 00d254415a !6672 [bug]fix bug for tensor store, while switch between pynative mode and graph mode
6 years ago
Zhang Qinghua efc8b1e86a Set top graph parameters' name as original graph parameters.
6 years ago
mindspore-ci-bot c0e678af2c !6690 add GPU CTCLoss
6 years ago
chenzupeng 339430e38f fix bug: run model shutdown
6 years ago
mindspore-ci-bot e611556834 !6670 [MD] r1.0 Relax time constraint for GeneratorWorker
6 years ago
mindspore-ci-bot f2eaca1980 !6671 GPU sqrt rsqrt support fp16
6 years ago
mindspore-ci-bot 89dcc3a01f !6676 Modify init interface to internal interface
6 years ago
baihuawei 66f1293a47 modify note of type
6 years ago
baihuawei e1b31c7baa add GPU CTCLoss
6 years ago
mindspore-ci-bot fd6ff8d6d2 !6667 fix stream sync error for mixed precision on pynative
6 years ago
luoyang da788590f9 relax time constraint for GeneratorWorker
6 years ago
Jiaqi 6d631113df modify init to _init
6 years ago
hexia d6ea9a9c20 fix codeDex
6 years ago
VectorSL 8d45e94f47 sqrt rsqrt add fp16
6 years ago
Wei Luning 0bcf4c0872 fix bug in tensor store
6 years ago
mindspore-ci-bot 595495596a !6655 MSLITE fix cppcheck
6 years ago
mindspore-ci-bot 473a3ee57e !6649 change docs links in README
6 years ago
mindspore-ci-bot bf1ba1bdd2 !6632 add transformer hub_conf
6 years ago
mindspore-ci-bot a57c06f021 !6637 modify resnet50_adv_pruning for hub loading
6 years ago
mindspore-ci-bot 5b3fcf810f !6641 update version to 1.0.0
6 years ago
mindspore-ci-bot 1c97e2c43f !6619 [ModelZoo]Add gnn model hub config
6 years ago
chujinjin 1cf8f3b777 fix stream sync error for mixed precision
6 years ago
mindspore-ci-bot 428927bdff !6554 fix pylint
6 years ago
xuanyue dda3e63247 fix cppcheck
6 years ago
mindspore-ci-bot e2821d0769 !6657 fix opencl mem leak
6 years ago
wandongdong 805e985e96 fix opencl mem leak
6 years ago
mindspore-ci-bot dde9f5ac25 !6607 delete SoftmaxCrossEntropyExpand interface
6 years ago
mindspore-ci-bot 11ab50b8d7 !6642 add resnet50_thor and bert_thor hub config file
6 years ago
mindspore-ci-bot 0037afee74 !6636 fix mobilenetv2 script error
6 years ago
mindspore-ci-bot ebd01dab18 !6614 clean codex
6 years ago
Xiao Tianci 22128420d6 modify links
6 years ago
mindspore-ci-bot feaf4e9aeb !6648 [MSLITE][Develop] fix code format
6 years ago
mindspore-ci-bot 3b3324fabc !6631 fix a bug of gpu timeline data incorrect in multi card training
6 years ago
wuweikang 769a1316ad version update to 1.0.0
6 years ago
zhanke 080f5226db add hub config
6 years ago
sunsuodong 01766eef78 fix format
6 years ago
mindspore-ci-bot ab0333e72f !6638 [MSLITE][Develop] fix resize feature
6 years ago
jinyaohui 334a32d501 fix pylint
6 years ago
wangmin 3120e51e7c add bert_thor hub file
6 years ago
sunsuodong 23d4f3783d fix_resize_bug
6 years ago
huzhifeng 888a5412a5 modify ghostnet for hub
6 years ago
zhaoting a7e881f312 fix mobilenetv2 script error
6 years ago
yuchaojie 9e69f9fac0 add transformer hub_conf
6 years ago
mindspore-ci-bot 29747f10d7 !6621 [MD] fix concat log
6 years ago
mindspore-ci-bot ae98dd5d0d !6623 fix links for README.md
6 years ago
gzhcv 829b37710a gpu_timeline(python code)
6 years ago
mindspore-ci-bot 09c0ce8e7f !6617 improve keywordarg tostring function
6 years ago
mindspore-ci-bot 699ad526f3 !6599 Fix a doc error in ReduceLogSumExp
6 years ago
mindspore-ci-bot 6c26629404 !6612 [bug]fix bug in Parameter flag set in pynative amp && code style in pynative_exector.cc
6 years ago
maning202007 ec631997b0 fix some safe warnings in debugger
6 years ago
mindspore-ci-bot d58116644b !6627 [MSLITE][Develop] support conv_depthwise arm32 int8 weight perchannel
6 years ago
mindspore-ci-bot da66ba8b61 !6625 [MSLITE] onnx deconv convertor bug
6 years ago
zhangyi a68df2417c update links for README.md.
6 years ago
mindspore-ci-bot ad706b5938 !6615 fix securec compile options
6 years ago
mindspore-ci-bot d1d28fb032 !6629 support negative axis with tuple type
6 years ago
mindspore-ci-bot 0c6f1a663c !6618 move set_seed() out from construct() of Net
6 years ago
yangruoqi713 53c6862a6f [MSLITE][Develop] support conv_depthwise arm32 int8 weight perchannel
6 years ago
baihuawei 178fb01e53 support negative axis with tuple type
6 years ago
mindspore-ci-bot b94e85b303 !6574 reviewbot warning clean
6 years ago
mindspore-ci-bot 293a42723e !6610 fix executor reviewbot
6 years ago
ling 6e62de56d1 [MSLITE] onnx deconv convertor bug
6 years ago
Wei Luning cdbd16de0c fix bug in parameter set & fix code style in pynative_executa.cc
6 years ago
liyong 0e40596bce fix concat log
6 years ago
Yi Huaijie b863324d90 move set_seed() out from construct() of Net
6 years ago
buxue 1c28300d24 improve keywordarg tostring function
6 years ago
yanghaoran 0e83cfcfa5 fix securec compile options
6 years ago
caifubi 32cd8d8135 fix codex
6 years ago
kswang 4137904442 fix executor reviewbot
6 years ago
liubuyu fc7ea3db78 code warning clean
6 years ago
peixu_ren 26a7ab6ec8 Fix a doc error in ReduceLogSumExp
6 years ago
guohongzilong a754dea90c delete SoftmaxCrossEntropyExpand
6 years ago

@ -69,6 +69,8 @@ MindSpore offers build options across multiple backends:
| | Ubuntu-aarch64 | ✔️ |
| | EulerOS-x86 | ✔️ |
| | EulerOS-aarch64 | ✔️ |
| | CentOS-x86 | ✔️ |
| | CentOS-aarch64 | ✔️ |
| GPU CUDA 10.1 | Ubuntu-x86 | ✔️ |
| CPU | Ubuntu-x86 | ✔️ |
| | Ubuntu-aarch64 | ✔️ |
@ -79,7 +81,7 @@ For installation using `pip`, take `CPU` and `Ubuntu-x86` build version as an ex
1. Download whl from [MindSpore download page](https://www.mindspore.cn/versions/en), and install the package.
```
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.7.0-beta/MindSpore/cpu/ubuntu_x86/mindspore-0.7.0-cp37-cp37m-linux_x86_64.whl
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.1/MindSpore/cpu/ubuntu_x86/mindspore-1.0.1-cp37-cp37m-linux_x86_64.whl
```
2. Run the following command to verify the install.
@ -136,8 +138,8 @@ currently the containerized build options are supported as follows:
For `CPU` backend, you can directly pull and run the latest stable image using the below command:
```
docker pull mindspore/mindspore-cpu:0.7.0-beta
docker run -it mindspore/mindspore-cpu:0.7.0-beta /bin/bash
docker pull mindspore/mindspore-cpu:1.0.1
docker run -it mindspore/mindspore-cpu:1.0.1 /bin/bash
```
* GPU
@ -170,8 +172,8 @@ currently the containerized build options are supported as follows:
```
Then you can pull and run the latest stable image using the below command:
```
docker pull mindspore/mindspore-gpu:0.7.0-beta
docker run -it --runtime=nvidia --privileged=true mindspore/mindspore-gpu:0.7.0-beta /bin/bash
docker pull mindspore/mindspore-gpu:1.0.0
docker run -it -v /dev/shm:/dev/shm --runtime=nvidia --privileged=true mindspore/mindspore-gpu:1.0.0 /bin/bash
```
To test if the docker image works, please execute the python code below and check the output:
@ -206,7 +208,7 @@ please check out [docker](docker/README.md) repo for the details.
## Quickstart
See the [Quick Start](https://www.mindspore.cn/tutorial/training/en/master/quick_start/quick_start.html)
See the [Quick Start](https://www.mindspore.cn/tutorial/training/en/master/quick_start/quick_start.html)
to implement the image classification.
## Docs
@ -232,6 +234,34 @@ Check out how MindSpore Open Governance [works](https://gitee.com/mindspore/comm
Welcome contributions. See our [Contributor Wiki](CONTRIBUTING.md) for
more details.
## Maintenance phases
Project stable branches will be in one of the following states:
| **State** | **Time frame** | **Summary** |
|-------------|---------------|--------------------------------------------------|
| Planning | 1 - 3 months | Features are under planning. |
| Development | 3 months | Features are under development. |
| Maintained | 6 - 12 months | All bugfixes are appropriate. Releases produced. |
| Unmaintained| 0 - 3 months | All bugfixes are appropriate. No Maintainers and No Releases produced. |
| End Of Life (EOL) | N/A | Branch no longer accepting changes. |
## Maintenance status
| **Branch** | **Status** | **Initial Release Date** | **Next Phase** | **EOL Date** |
|--------|--------------|----------------------|-----------------------------------|------------|
| **r1.1** | Development | 2020-12-31 estimated | Maintained <br> 2020-12-31 estimated | |
| **r1.0** | Maintained | 2020-09-24 | Unmaintained <br> 2021-03-30 estimated | |
| **r0.7** | Maintained | 2020-08-31 | Unmaintained <br> 2020-11-30 estimated | |
| **r0.6** | Unmaintained | 2020-07-31 | End Of Life <br> 2020-12-30 estimated | |
| **r0.5** | Maintained | 2020-06-30 | Unmaintained <br> 2021-06-30 estimated | |
| **r0.3** | End Of Life | 2020-05-31 | | 2020-09-30 |
| **r0.2** | End Of Life | 2020-04-30 | | 2020-08-31 |
| **r0.1** | End Of Life | 2020-03-28 | | 2020-06-30 |
## Release Notes
The release notes, see our [RELEASE](RELEASE.md).

@ -66,6 +66,8 @@ MindSpore提供跨多个后端的构建选项
| | Ubuntu-aarch64 | ✔️ |
| | EulerOS-x86 | ✔️ |
| | EulerOS-aarch64 | ✔️ |
| | CentOS-x86 | ✔️ |
| | CentOS-aarch64 | ✔️ |
| GPU CUDA 10.1 | Ubuntu-x86 | ✔️ |
| CPU | Ubuntu-x86 | ✔️ |
| | Ubuntu-aarch64 | ✔️ |
@ -76,7 +78,7 @@ MindSpore提供跨多个后端的构建选项
1. 请从[MindSpore下载页面](https://www.mindspore.cn/versions)下载并安装whl包。
```
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.7.0-beta/MindSpore/cpu/ubuntu_x86/mindspore-0.7.0-cp37-cp37m-linux_x86_64.whl
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.1/MindSpore/cpu/ubuntu_x86/mindspore-1.0.1-cp37-cp37m-linux_x86_64.whl
```
2. 执行以下命令,验证安装结果。
@ -132,8 +134,8 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore
对于`CPU`后端,可以直接使用以下命令获取并运行最新的稳定镜像:
```
docker pull mindspore/mindspore-cpu:0.7.0-beta
docker run -it mindspore/mindspore-cpu:0.7.0-beta /bin/bash
docker pull mindspore/mindspore-cpu:1.0.1
docker run -it mindspore/mindspore-cpu:1.0.1 /bin/bash
```
* GPU
@ -166,8 +168,8 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore
```
使用以下命令获取并运行最新的稳定镜像:
```
docker pull mindspore/mindspore-gpu:0.7.0-beta
docker run -it --runtime=nvidia --privileged=true mindspore/mindspore-gpu:0.7.0-beta /bin/bash
docker pull mindspore/mindspore-gpu:1.0.0
docker run -it -v /dev/shm:/dev/shm --runtime=nvidia --privileged=true mindspore/mindspore-gpu:1.0.0 /bin/bash
```
要测试Docker是否正常工作请运行下面的Python代码并检查输出
@ -225,6 +227,34 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore
欢迎参与贡献。更多详情,请参阅我们的[贡献者Wiki](CONTRIBUTING.md)。
## 分支维护策略
MindSpore的版本分支有以下几种维护阶段
| **状态** | **持续时间** | **说明** |
|-------------|---------------|--------------------------------------------------|
| Planning | 1 - 3 months | 特性规划。 |
| Development | 3 months | 特性开发。 |
| Maintained | 6 - 12 months | 允许所有问题修复的合入,并发布版本。 |
| Unmaintained| 0 - 3 months | 允许所有问题修复的合入,无专人维护,不再发布版本。 |
| End Of Life (EOL) | N/A | 不再接受修改合入该分支。 |
## 现有分支维护状态
| **分支名** | **当前状态** | **上线时间** | **后续状态** | **EOL 日期** |
|--------|--------------|----------------------|-----------------------------------|------------|
| **r1.1** | Development | 2020-12-31 estimated | Maintained <br> 2020-12-31 estimated | |
| **r1.0** | Maintained | 2020-09-24 | Unmaintained <br> 2021-03-30 estimated | |
| **r0.7** | Maintained | 2020-08-31 | Unmaintained <br> 2020-11-30 estimated | |
| **r0.6** | Unmaintained | 2020-07-31 | End Of Life <br> 2020-12-30 estimated | |
| **r0.5** | Maintained | 2020-06-30 | Unmaintained <br> 2021-06-30 estimated | |
| **r0.3** | End Of Life | 2020-05-31 | | 2020-09-30 |
| **r0.2** | End Of Life | 2020-04-30 | | 2020-08-31 |
| **r0.1** | End Of Life | 2020-03-28 | | 2020-06-30 |
## 版本说明
版本说明请参阅[RELEASE](RELEASE.md)。

File diff suppressed because one or more lines are too long

2
akg

@ -1 +1 @@
Subproject commit 4d897c23fc41c5f7013efd0c517796233671518a
Subproject commit 6c492a8c9d9730ad11ffc5481cc532ae500b0da5

@ -16,12 +16,25 @@
@title mindspore_build
SET BASEPATH=%CD%
IF NOT EXIST "%BASEPATH%/build" (
SET BUILD_PATH=%BASEPATH%/build
find "const int ms_version_major =" mindspore\lite\include\version.h > version.txt
for /f "delims=\= tokens=2" %%a in ('findstr "const int ms_version_major = " version.txt') do (set x=%%a)
set VERSION_MAJOR=%x:~1,1%
find "const int ms_version_minor =" mindspore\lite\include\version.h > version.txt
for /f "delims=\= tokens=2" %%b in ('findstr "const int ms_version_minor = " version.txt') do (set y=%%b)
set VERSION_MINOR=%y:~1,1%
find "const int ms_version_revision =" mindspore\lite\include\version.h > version.txt
for /f "delims=\= tokens=2" %%c in ('findstr "const int ms_version_revision = " version.txt') do (set z=%%c)
set VERSION_REVISION=%z:~1,1%
del version.txt
echo "======Start building MindSpore Lite %VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%======"
IF NOT EXIST "%BUILD_PATH%" (
md "build"
)
cd %BASEPATH%/build
set BUILD_PATH=%CD%
cd %BUILD_PATH%
IF NOT EXIST "%BUILD_PATH%/mindspore" (
md "mindspore"
@ -85,7 +98,7 @@ goto run_eof
cd %BUILD_PATH%/mindspore
cmake -DBUILD_DEVICE=on -DBUILD_CONVERTER=on -DPLATFORM_ARM64=off -DSUPPORT_TRAIN=off ^
-DCMAKE_BUILD_TYPE=Release -DSUPPORT_GPU=off -DBUILD_MINDDATA=off -DOFFLINE_COMPILE=off ^
-DMS_VERSION_MAJOR=0 -DMS_VERSION_MINOR=7 -DMS_VERSION_REVISION=0 ^
-DMS_VERSION_MAJOR=%VERSION_MAJOR% -DMS_VERSION_MINOR=%VERSION_MINOR% -DMS_VERSION_REVISION=%VERSION_REVISION% ^
-G "CodeBlocks - MinGW Makefiles" "%BASEPATH%/mindspore/lite"
GOTO:EOF
@ -123,6 +136,6 @@ GOTO:EOF
:run_fail
cd %BASEPATH%
set errorlevel=1
EXIT
exit /b %errorlevel%
:run_eof

@ -25,7 +25,7 @@ usage()
echo "bash build.sh [-d] [-r] [-v] [-c on|off] [-t on|off] [-g on|off] [-h] [-b ge] [-m infer|train] \\"
echo " [-a on|off] [-p on|off] [-i] [-L] [-R] [-D on|off] [-j[n]] [-e gpu|d|cpu] \\"
echo " [-P on|off] [-z [on|off]] [-M on|off] [-V 9.2|10.1] [-I arm64|arm32|x86_64] [-K] \\"
echo " [-B on|off] [-w on|off] [-E] [-l on|off] [-n full|lite|off] [-T on|off]"
echo " [-B on|off] [-w on|off] [-E] [-l on|off] [-n full|lite|off]"
echo ""
echo "Options:"
echo " -d Debug mode"
@ -58,7 +58,6 @@ usage()
echo " -B Enable debugger, default on"
echo " -E Enable IBVERBS for parameter server, default off"
echo " -l Compile with python dependency, default on"
echo " -T Enable on-device training, default off"
}
# check value of input is 'on' or 'off'
@ -237,7 +236,7 @@ checkopts()
;;
z)
eval ARG=\$\{$OPTIND\}
if [[ -n $ARG && $ARG != -* ]]; then
if [[ -n "$ARG" && "$ARG" != -* ]]; then
OPTARG="$ARG"
check_on_off $OPTARG z
OPTIND=$((OPTIND + 1))
@ -652,7 +651,7 @@ build_lite()
checkndk
cmake -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" -DANDROID_NATIVE_API_LEVEL="19" \
-DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="arm64-v8a" -DANDROID_TOOLCHAIN_NAME="aarch64-linux-android-clang" \
-DANDROID_STL="c++_shared" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DSUPPORT_TRAIN=${SUPPORT_TRAIN} \
-DANDROID_STL="c++_static" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DSUPPORT_TRAIN=${SUPPORT_TRAIN} \
-DBUILD_DEVICE=on -DPLATFORM_ARM64=on -DBUILD_CONVERTER=off -DENABLE_NEON=on -DENABLE_FP16="off" \
-DSUPPORT_GPU=${ENABLE_GPU} -DOFFLINE_COMPILE=${OPENCL_OFFLINE_COMPILE} -DBUILD_MINDDATA=${COMPILE_MINDDATA_LITE} \
-DCMAKE_INSTALL_PREFIX=${BASEPATH}/output/tmp -DMS_VERSION_MAJOR=${VERSION_MAJOR} \
@ -662,7 +661,7 @@ build_lite()
checkndk
cmake -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" -DANDROID_NATIVE_API_LEVEL="19" \
-DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="armeabi-v7a" -DANDROID_TOOLCHAIN_NAME="clang" \
-DANDROID_STL="c++_shared" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DANDROID_STL="c++_static" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DBUILD_DEVICE=on -DPLATFORM_ARM32=on -DENABLE_NEON=on -DSUPPORT_TRAIN=${SUPPORT_TRAIN} -DBUILD_CONVERTER=off \
-DSUPPORT_GPU=${ENABLE_GPU} -DOFFLINE_COMPILE=${OPENCL_OFFLINE_COMPILE} -DBUILD_MINDDATA=${COMPILE_MINDDATA_LITE} \
-DCMAKE_INSTALL_PREFIX=${BASEPATH}/output/tmp -DMS_VERSION_MAJOR=${VERSION_MAJOR} \

@ -19,9 +19,14 @@ set(Python3_USE_STATIC_LIBS FALSE)
find_package(Python3 COMPONENTS Interpreter Development)
if (Python3_FOUND)
message("Python3 found, version: ${Python3_VERSION}")
message("Python3 library path: ${Python3_LIBRARY_DIRS}")
message("Python3 library path: ${Python3_LIBRARY}")
message("Python3 interpreter: ${Python3_EXECUTABLE}")
else()
elseif (Python3_LIBRARY AND Python3_EXECUTABLE AND
${Python3_VERSION} VERSION_GREATER_EQUAL "3.7.0" AND ${Python3_VERSION} VERSION_LESS "3.8.0")
message(WARNING "Maybe python3 environment is broken.")
message("Python3 library path: ${Python3_LIBRARY}")
message("Python3 interpreter: ${Python3_EXECUTABLE}")
else ()
message(FATAL_ERROR "Python3 not found, please install Python>=3.7.5, and set --enable-shared "
"if you are building Python locally")
endif ()

@ -56,6 +56,15 @@ else()
find_library(register libregister.so ${ASCEND_RUNTIME_PATH})
find_library(resource libresource.so ${ASCEND_RUNTIME_PATH})
find_library(error_manager liberror_manager.so ${ASCEND_RUNTIME_PATH})
# for Atlas env
set(ASCEND_TOOLKIT_RUNTIME_PATH ${ASCEND_PATH}/ascend-toolkit/latest/fwkacllib/lib64)
find_library(cce libcce.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(hccl libhccl.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(runtime libruntime.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(msprof libmsprof.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(register libregister.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(resource libresource.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(error_manager liberror_manager.so ${ASCEND_TOOLKIT_RUNTIME_PATH})
endif()
# compile libraries from following directories

@ -1,10 +1,10 @@
set(nccl_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
mindspore_add_pkg(nccl
VER 2.4.8-1
VER 2.7.6-1
LIBS nccl
URL https://github.com/NVIDIA/nccl/archive/v2.4.8-1.tar.gz
MD5 f14b37d6af1c79db5f57cb029a753727
URL https://github.com/NVIDIA/nccl/archive/v2.7.6-1.tar.gz
MD5 073b19899f374c5ba07d2db02dc38f9f
BUILD_OPTION src.build NVCC_GENCODE="-gencode=arch=compute_70,code=sm_70"
INSTALL_INCS build/include/*
INSTALL_LIBS build/lib/*)

@ -193,6 +193,11 @@ if (NOT ENABLE_GE)
DESTINATION ${INSTALL_LIB_DIR}
COMPONENT mindspore
)
install(
TARGETS ms_profile
DESTINATION ${INSTALL_LIB_DIR}
COMPONENT mindspore
)
elseif (ENABLE_TESTCASES)
install(
FILES

@ -56,7 +56,7 @@ if (PLATFORM_ARM64)
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite.so DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite.a DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${INC_DIR}/ir/dtype COMPONENT ${COMPONENT_NAME})
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR} COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR} COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train_model.h" EXCLUDE PATTERN "train_session.h" EXCLUDE)
install(DIRECTORY ${TOP_DIR}/mindspore/lite/schema/ DESTINATION ${INC_DIR}/schema COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "inner" EXCLUDE)
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite-optimize.so DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite-fp16.so DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
@ -65,7 +65,7 @@ elseif (PLATFORM_ARM32)
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite.so DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/mindspore/lite/build/src/libmindspore-lite.a DESTINATION ${LIB_DIR} COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${INC_DIR}/ir/dtype COMPONENT ${COMPONENT_NAME})
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR} COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR} COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train_model.h" EXCLUDE PATTERN "train_session.h" EXCLUDE)
install(DIRECTORY ${TOP_DIR}/mindspore/lite/schema/ DESTINATION ${INC_DIR}/schema COMPONENT ${COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "inner" EXCLUDE)
install(DIRECTORY ${TOP_DIR}/third_party/flatbuffers/include DESTINATION ${FLATBF_DIR} COMPONENT ${COMPONENT_NAME})
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
@ -75,7 +75,7 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
install(FILES ${LIB_LIST} DESTINATION ${TOP_DIR}/build/mindspore/package COMPONENT ${COMPONENT_NAME})
install(FILES ${TOP_DIR}/build/mindspore/tools/converter/libconverter_parser.a DESTINATION ${TOP_DIR}/build/mindspore/package COMPONENT ${PARSER_NAME})
else ()
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR_RUN_X86} COMPONENT ${RUN_X86_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${INC_DIR_RUN_X86} COMPONENT ${RUN_X86_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train_model.h" EXCLUDE PATTERN "train_session.h" EXCLUDE)
install(DIRECTORY ${TOP_DIR}/mindspore/lite/schema/ DESTINATION ${INC_DIR_RUN_X86}/schema COMPONENT ${RUN_X86_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "inner" EXCLUDE)
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${INC_DIR_RUN_X86}/ir/dtype COMPONENT ${RUN_X86_COMPONENT_NAME})
install(DIRECTORY ${TOP_DIR}/third_party/flatbuffers/include DESTINATION ${FLATBF_DIR_RUN_X86} COMPONENT ${RUN_X86_COMPONENT_NAME})

@ -0,0 +1,67 @@
FROM ubuntu:18.04
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
# Set env
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
ENV PATH /usr/local/bin:$PATH
# Install base tools
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \
vim \
wget \
curl \
xz-utils \
net-tools \
openssh-client \
git \
ntpdate \
tzdata \
tcl \
sudo \
bash-completion
# Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \
g++ \
zlibc \
make \
libgmp-dev \
patch \
autoconf \
libtool \
automake \
flex
# Set bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5)
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \
&& rm -f /usr/local/bin/pip \
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
&& rm -rf /tmp/cpython-3.7.5 \
&& rm -f /tmp/v3.7.5.tar.gz
# Set pip source
RUN mkdir -pv /root/.pip \
&& echo "[global]" > /root/.pip/pip.conf \
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install MindSpore cpu whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.0/MindSpore/cpu/ubuntu_x86/mindspore-1.0.0-cp37-cp37m-linux_x86_64.whl

@ -0,0 +1,67 @@
FROM ubuntu:18.04
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
# Set env
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
ENV PATH /usr/local/bin:$PATH
# Install base tools
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \
vim \
wget \
curl \
xz-utils \
net-tools \
openssh-client \
git \
ntpdate \
tzdata \
tcl \
sudo \
bash-completion
# Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \
g++ \
zlibc \
make \
libgmp-dev \
patch \
autoconf \
libtool \
automake \
flex
# Set bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5)
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \
&& rm -f /usr/local/bin/pip \
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
&& rm -rf /tmp/cpython-3.7.5 \
&& rm -f /tmp/v3.7.5.tar.gz
# Set pip source
RUN mkdir -pv /root/.pip \
&& echo "[global]" > /root/.pip/pip.conf \
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install MindSpore cpu whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.1/MindSpore/cpu/ubuntu_x86/mindspore-1.0.1-cp37-cp37m-linux_x86_64.whl

@ -0,0 +1,81 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
# Set env
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
ENV OMPI_ROOT_PATH /usr/local/openmpi-3.1.5
ENV PATH ${OMPI_ROOT_PATH}/bin:/usr/local/bin:$PATH
ENV LD_LIBRARY_PATH ${OMPI_ROOT_PATH}/lib:$LD_LIBRARY_PATH
# Install base tools
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \
vim \
wget \
curl \
xz-utils \
net-tools \
openssh-client \
git \
ntpdate \
tzdata \
tcl \
sudo \
bash-completion
# Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \
g++ \
zlibc \
make \
libgmp-dev \
patch \
autoconf \
libtool \
automake \
flex
# Set bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5)
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \
&& rm -f /usr/local/bin/pip \
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
&& rm -rf /tmp/cpython-3.7.5 \
&& rm -f /tmp/v3.7.5.tar.gz
# Set pip source
RUN mkdir -pv /root/.pip \
&& echo "[global]" > /root/.pip/pip.conf \
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install openmpi (v3.1.5)
RUN cd /tmp \
&& wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.5.tar.gz \
&& tar -xvf openmpi-3.1.5.tar.gz \
&& cd /tmp/openmpi-3.1.5 \
&& mkdir -p ${OMPI_ROOT_PATH} \
&& ./configure --prefix=${OMPI_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -rf /tmp/openmpi-3.1.5 \
&& rm -f /tmp/openmpi-3.1.5.tar.gz
# Install MindSpore cuda-10.1 whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.0/MindSpore/gpu/ubuntu_x86/cuda-10.1/mindspore_gpu-1.0.0-cp37-cp37m-linux_x86_64.whl

@ -0,0 +1,81 @@
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
# Set env
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
ENV OMPI_ROOT_PATH /usr/local/openmpi-3.1.5
ENV PATH ${OMPI_ROOT_PATH}/bin:/usr/local/bin:$PATH
ENV LD_LIBRARY_PATH ${OMPI_ROOT_PATH}/lib:$LD_LIBRARY_PATH
# Install base tools
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \
vim \
wget \
curl \
xz-utils \
net-tools \
openssh-client \
git \
ntpdate \
tzdata \
tcl \
sudo \
bash-completion
# Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \
g++ \
zlibc \
make \
libgmp-dev \
patch \
autoconf \
libtool \
automake \
flex
# Set bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5)
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \
&& cd /tmp/cpython-3.7.5 \
&& mkdir -p ${PYTHON_ROOT_PATH} \
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -f /usr/local/bin/python \
&& rm -f /usr/local/bin/pip \
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
&& rm -rf /tmp/cpython-3.7.5 \
&& rm -f /tmp/v3.7.5.tar.gz
# Set pip source
RUN mkdir -pv /root/.pip \
&& echo "[global]" > /root/.pip/pip.conf \
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install openmpi (v3.1.5)
RUN cd /tmp \
&& wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.5.tar.gz \
&& tar -xvf openmpi-3.1.5.tar.gz \
&& cd /tmp/openmpi-3.1.5 \
&& mkdir -p ${OMPI_ROOT_PATH} \
&& ./configure --prefix=${OMPI_ROOT_PATH} \
&& make -j4 \
&& make install -j4 \
&& rm -rf /tmp/openmpi-3.1.5 \
&& rm -f /tmp/openmpi-3.1.5.tar.gz
# Install MindSpore cuda-10.1 whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.0.1/MindSpore/gpu/ubuntu_x86/cuda-10.1/mindspore_gpu-1.0.1-cp37-cp37m-linux_x86_64.whl

@ -1 +1 @@
Subproject commit 4f6ebe0f92da8c758b1b71a2bc7ff33f9344e18a
Subproject commit d2ab1c2819c90e61d98b5f88699bcd6b6de4423c

@ -74,7 +74,11 @@ class InferTensorBase {
if (data_len == 0) {
return true;
}
memcpy_s(mutable_data(), data_size(), data, data_len);
auto ret = memcpy_s(mutable_data(), data_size(), data, data_len);
if (ret != 0) {
MSI_LOG_ERROR << "Set data memcpy_s failed";
return false;
}
return true;
}

@ -81,7 +81,6 @@ class MS_API InferSession {
}
static std::shared_ptr<InferSession> CreateSession(const std::string &device, uint32_t device_id);
};
} // namespace inference
} // namespace mindspore
#endif // MINDSPORE_INCLUDE_MS_SESSION_H

@ -13,7 +13,6 @@
# limitations under the License.
# ============================================================================
"""tbe common"""
import json
import os
class TBEException(Exception):
@ -27,23 +26,6 @@ class TBEException(Exception):
return self.__error_msg
def get_ddk_version():
"""get ddk version"""
ddk_version = os.environ.get("DDK_VERSION")
if ddk_version is None:
default_ddk_info_file = '/usr/local/HiAI/runtime/ddk_info'
backup_ddk_info_file = '/usr/local/Ascend/fwkacllib/ddk_info'
if os.path.exists(default_ddk_info_file):
with open(default_ddk_info_file, "r") as fp:
ddk_version = json.load(fp)["VERSION"]
elif os.path.exists(backup_ddk_info_file):
with open(backup_ddk_info_file, "r") as fp:
ddk_version = json.load(fp)["VERSION"]
else:
ddk_version = "Ascend910"
return ddk_version
def get_build_in_impl_path():
"""get build-in tbe implement path"""
tbe_impl_path = os.environ.get("TBE_IMPL_PATH")

@ -18,9 +18,8 @@ import os
import sys
from te.platform.cce_conf import te_set_version
from te.platform.fusion_util import fusion_op
from common import check_kernel_info, get_args, get_build_in_impl_path, get_ddk_version
from common import check_kernel_info, get_args, get_build_in_impl_path
ddk_version = get_ddk_version()
build_in_impl_path = get_build_in_impl_path()
# op function list
@ -30,7 +29,6 @@ fusion_pattern_end_flag = "fusion_pattern_end"
def _initialize(impl_path):
"""Initialize"""
te_set_version(ddk_version)
if impl_path == "":
op_module_name = build_in_impl_path
else:
@ -53,7 +51,7 @@ def build_op(build_type, json_str):
"""
kernel_info = json.loads(json_str)
check_kernel_info(kernel_info)
te_set_version(kernel_info["op_info"]["socVersion"])
op_name = kernel_info['op_info']['name']
try:
@ -111,7 +109,7 @@ def compile_fusion_op(json_str):
Exception: If specific keyword is not found.
"""
args = json.loads(json_str)
te_set_version(ddk_version)
te_set_version(args['fusion_op']["socVersion"])
if 'fusion_op' not in args or not args['fusion_op']:
raise ValueError("Json string Errors, key:fusion_op not found.")
fusion_op_arg = args['fusion_op']

@ -104,7 +104,7 @@ class TbeProcess:
def __init__(self):
self.__processe_num = multiprocessing.cpu_count()
# max_processes_num: Set the maximum number of concurrent processes for compiler
max_processes_num = 16
max_processes_num = 24
if self.__processe_num > max_processes_num:
self.__processe_num = max_processes_num
self.__pool = None

@ -30,7 +30,6 @@ trans = P.Transpose()
shape_ = P.Shape()
dtype_ = P.DType()
def all_(x, axis=(), keep_dims=False):
"""
Check all array elements along a given axis evaluate to True.
@ -144,12 +143,16 @@ def bool_(x):
def enumerate_(x, start=0):
"""Enumerate list or tuple."""
"""Enumerate list or tuple or tensor."""
x_type = F.typeof(x)
ret = ()
op_name = "enumerate"
if check_is_tuple_or_list(x_type, op_name, "first input") and check_is_const_int(start, op_name, "start"):
ret = zip(range(start, start + len(x)), x)
if check_is_tuple_or_list_or_tensor(x_type, op_name, "first input") and check_is_const_int(start, op_name, "start"):
if check_is_tensor(x_type):
for i in range(x.shape[0]):
ret += ((start + i, x[i]),)
else:
ret = zip(range(start, start + len(x)), x)
return ret
@ -177,11 +180,19 @@ def check_type_same(x_type, base_type):
@constexpr
def check_is_tuple_or_list(x, op_name, arg_name):
def check_is_tensor(x):
"""check whether x is list or tuple."""
if isinstance(x, (mstype.list_type, mstype.tuple_type)):
if isinstance(x, mstype.tensor_type):
return True
return False
@constexpr
def check_is_tuple_or_list_or_tensor(x, op_name, arg_name):
"""check whether x is list or tuple or tensor."""
if isinstance(x, (mstype.list_type, mstype.tuple_type, mstype.tensor_type)):
return True
raise TypeError(f"For '{op_name}', the '{arg_name}' should be tuple or list, but got {x}.")
raise TypeError(f"For '{op_name}', the '{arg_name}' should be tuple or list or tensor, but got {x}.")
@constexpr

@ -78,8 +78,7 @@ class GPUEnvChecker(EnvChecker):
if Path(self.cuda_bin).is_dir():
os.environ['PATH'] = self.cuda_bin + ":" + os.environ['PATH']
else:
raise EnvironmentError(
f"No such directory: {self.cuda_bin}, please check if cuda is installed correctly.")
logger.warning(f"No such directory: {self.cuda_bin}, please check if cuda is installed correctly.")
def check_version(self):
if not Path(self.cuda_version).is_file():
@ -92,8 +91,8 @@ class GPUEnvChecker(EnvChecker):
v = version.parse(v)
v_str = str(v.major) + "." + str(v.minor)
if v_str not in self.version:
raise EnvironmentError(f"MindSpore version {__version__} and cuda version {v_str} does not match, "
"reference to the match info on: https://www.mindspore.cn/install")
logger.warning(f"MindSpore version {__version__} and cuda version {v_str} does not match, "
"reference to the match info on: https://www.mindspore.cn/install")
def _check_env(self):
"""gpu cuda path check"""
@ -122,15 +121,25 @@ class AscendEnvChecker(EnvChecker):
def __init__(self):
self.version = ["1.75.22.0.220"]
atlas_fwk_version = "/usr/local/Ascend/nnae/latest/fwkacllib/version.info"
atlas_nnae_version = "/usr/local/Ascend/nnae/latest/fwkacllib/version.info"
atlas_toolkit_version = "/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/version.info"
hisi_fwk_version = "/usr/local/Ascend/fwkacllib/version.info"
if os.path.exists(atlas_fwk_version):
if os.path.exists(atlas_nnae_version):
# atlas default path
self.fwk_path = "/usr/local/Ascend/nnae/latest/fwkacllib"
self.op_impl_path = "/usr/local/Ascend/nnae/latest/opp/op_impl/built-in/ai_core/tbe"
self.tbe_path = self.fwk_path + "/lib64"
self.cce_path = self.fwk_path + "/ccec_compiler/bin"
self.fwk_version = atlas_fwk_version
self.fwk_version = atlas_nnae_version
self.op_path = "/usr/local/Ascend/nnae/latest/opp"
elif os.path.exists(atlas_toolkit_version):
# atlas default path
self.fwk_path = "/usr/local/Ascend/ascend-toolkit/latest/fwkacllib"
self.op_impl_path = "/usr/local/Ascend/ascend-toolkit/latest/opp/op_impl/built-in/ai_core/tbe"
self.tbe_path = self.fwk_path + "/lib64"
self.cce_path = self.fwk_path + "/ccec_compiler/bin"
self.fwk_version = atlas_toolkit_version
self.op_path = "/usr/local/Ascend/ascend-toolkit/latest/opp"
elif os.path.exists(hisi_fwk_version):
# hisi default path
self.fwk_path = "/usr/local/Ascend/fwkacllib"
@ -138,6 +147,7 @@ class AscendEnvChecker(EnvChecker):
self.tbe_path = self.fwk_path + "/lib64"
self.cce_path = self.fwk_path + "/ccec_compiler/bin"
self.fwk_version = hisi_fwk_version
self.op_path = ""
else:
# custom or unknown environment
self.fwk_path = ""
@ -145,17 +155,20 @@ class AscendEnvChecker(EnvChecker):
self.tbe_path = ""
self.cce_path = ""
self.fwk_version = ""
self.op_path = ""
# env
self.path = os.getenv("PATH")
self.python_path = os.getenv("PYTHONPATH")
self.ld_lib_path = os.getenv("LD_LIBRARY_PATH")
self.ascend_opp_path = os.getenv("ASCEND_OPP_PATH")
# check content
self.path_check = "/fwkacllib/ccec_compiler/bin/"
self.python_path_check = "opp/op_impl/built_in/ai_core/tbe/"
self.python_path_check = "opp/op_impl/built-in/ai_core/tbe/"
self.ld_lib_path_check_fwk = "/fwkacllib/lib64/"
self.ld_lib_path_check_addons = "/add-ons/"
self.ascend_opp_path_check = "/op"
self.v = ""
def check_env(self, e):
@ -171,7 +184,7 @@ class AscendEnvChecker(EnvChecker):
v = self._read_version(self.fwk_version)
if v not in self.version:
raise EnvironmentError(
logger.warning(
f"MindSpore version {__version__} and Ascend 910 AI software package version {v} does not "
"match, reference to the match info on: https://www.mindspore.cn/install")
@ -187,24 +200,33 @@ class AscendEnvChecker(EnvChecker):
if Path(self.tbe_path).is_dir():
os.environ['LD_LIBRARY_PATH'] = self.tbe_path
else:
raise EnvironmentError(
logger.warning(
f"No such directory: {self.tbe_path}, Please check if Ascend 910 AI software package is "
"installed correctly.")
if Path(self.op_impl_path).is_dir():
sys.path.append(self.op_impl_path)
else:
raise EnvironmentError(
logger.warning(
f"No such directory: {self.op_impl_path}, Please check if Ascend 910 AI software package is "
"installed correctly.")
if Path(self.cce_path).is_dir():
os.environ['PATH'] = self.cce_path + ":" + os.environ['PATH']
else:
raise EnvironmentError(
logger.warning(
f"No such directory: {self.cce_path}, Please check if Ascend 910 AI software package is "
"installed correctly.")
if self.op_path is None:
pass
elif Path(self.op_path).is_dir():
os.environ['ASCEND_OPP_PATH'] = self.op_path
else:
logger.warning(
f"No such directory: {self.op_path}, Please check if Ascend 910 AI software package is "
"installed correctly.")
def _check_env(self):
"""ascend dependence path check"""
if self.path is None or self.path_check not in self.path:
@ -223,6 +245,11 @@ class AscendEnvChecker(EnvChecker):
"LD_LIBRARY_PATH, you can reference to the installation guidelines "
"https://www.mindspore.cn/install")
if self.ascend_opp_path is None or self.ascend_opp_path_check not in self.ascend_opp_path:
logger.warning(
"Can not find opp path (need by mindspore-ascend), please check if you have set env ASCEND_OPP_PATH, "
"you can reference to the installation guidelines https://www.mindspore.cn/install")
def _read_version(self, file_path):
"""get ascend version info"""
with open(file_path, 'r') as f:
@ -233,6 +260,7 @@ class AscendEnvChecker(EnvChecker):
return self.v
return self.v
def check_version_and_env_config():
"""check version and env config"""
if __package_name__.lower() == "mindspore-ascend":
@ -253,4 +281,5 @@ def check_version_and_env_config():
except ImportError as e:
env_checker.check_env(e)
check_version_and_env_config()

@ -132,7 +132,7 @@ if (ENABLE_D)
include_directories("${CMAKE_BINARY_DIR}/backend/kernel_compiler/aicpu")
file(GLOB_RECURSE PROTO_IN RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "backend/kernel_compiler/aicpu/proto/*.proto")
ms_protobuf_generate(PROTOSRCS PROTOHDRS ${PROTO_IN})
file(GLOB_RECURSE PROTO_DUMP RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "runtime/device/ascend/dump/proto/*.proto")
ms_protobuf_generate(DUMP_PROTOSRCS PROTOHDRS ${PROTO_DUMP})
@ -176,8 +176,6 @@ endforeach ()
set_property(SOURCE ${SUB_OBJECTS_SRC} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_ME)
add_library(mindspore STATIC ${SUB_OBJECTS_SRC})
target_link_libraries(proto_input mindspore::protobuf)
target_link_libraries(mindspore mindspore_core)
if (ENABLE_DEBUGGER)
@ -185,7 +183,6 @@ if (ENABLE_DEBUGGER)
target_link_libraries(proto_input mindspore::grpc++)
endif()
target_link_libraries(mindspore proto_input)
target_link_libraries(mindspore securec mindspore::flatbuffers)
if (NOT WIN32)
@ -222,6 +219,7 @@ if (ENABLE_D)
set(ASCEND_DRIVER_PATH ${ASCEND_PATH}/driver/lib64/common)
set(ASCEND_DRIVER_BACK_PATH ${ASCEND_PATH}/driver/lib64/driver)
set(ASCEND_RUNTIME_PATH ${ASCEND_PATH}/fwkacllib/lib64)
set(ASCEND_TOOLKIT_RUNTIME_PATH ${ASCEND_PATH}/ascend-toolkit/latest/fwkacllib/lib64)
endif()
MESSAGE("USE DAV LIB PATH: ${ASCEND_PATH}")
@ -230,13 +228,25 @@ if (ENABLE_D)
find_library(RUNTIME_LIB runtime ${ASCEND_RUNTIME_PATH})
find_library(TSDCLIENT tsdclient HINTS ${ASCEND_RUNTIME_PATH} ${ASCEND_DRIVER_BACK_PATH})
find_library(DATATRANSFER datatransfer HINTS ${ASCEND_RUNTIME_PATH} ${ASCEND_DRIVER_BACK_PATH})
find_library(PROFILING msprof ${ASCEND_DRIVER_PATH})
target_link_libraries(mindspore ge_runtime ${CCE_LIB} ${RUNTIME_LIB} ${TSDCLIENT} ${PROFILING} ${HCCL} ${DATATRANSFER})
endif()
# link protobuf
if (ENABLE_D)
target_link_libraries(mindspore mindspore::protobuf)
find_library(PROFILING msprofiler ${ASCEND_RUNTIME_PATH})
# for atlas env
find_library(HCCL hccl ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(CCE_LIB cce ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(RUNTIME_LIB runtime ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(TSDCLIENT tsdclient HINTS ${ASCEND_TOOLKIT_RUNTIME_PATH} ${ASCEND_DRIVER_BACK_PATH})
find_library(DATATRANSFER datatransfer HINTS ${ASCEND_TOOLKIT_RUNTIME_PATH} ${ASCEND_DRIVER_BACK_PATH})
find_library(PROFILING msprofiler ${ASCEND_TOOLKIT_RUNTIME_PATH})
find_library(PROFILING_SHARED msprof ${ASCEND_DRIVER_PATH})
add_library(ms_profile SHARED ${PROFILING})
set_target_properties(ms_profile PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(ms_profile -Wl,--start-group ${PROFILING_SHARED} ${PROFILING} mindspore::protobuf -Wl,--end-group)
target_link_libraries(mindspore ms_profile ge_runtime ${CCE_LIB} ${RUNTIME_LIB} ${TSDCLIENT} ${HCCL} ${DATATRANSFER} ${OPTILING})
target_link_libraries(mindspore -Wl,--start-group proto_input mindspore::protobuf -Wl,--end-group)
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
target_link_libraries(mindspore -Wl,--start-group proto_input mindspore::protobuf mindspore::sentencepiece -Wl,--end-group)
else ()
target_link_libraries(mindspore -Wl,--start-group proto_input mindspore::protobuf -Wl,--end-group)
endif()
# set c_expression building
@ -259,6 +269,7 @@ endif ()
set(MINDSPORE_RPATH ${ORIGIN_PATH}/lib)
if (ENABLE_D)
set(MINDSPORE_RPATH ${MINDSPORE_RPATH}:/usr/local/Ascend/nnae/latest/fwkacllib/lib64)
set(MINDSPORE_RPATH ${MINDSPORE_RPATH}:/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/lib64)
set(MINDSPORE_RPATH ${MINDSPORE_RPATH}:/usr/local/Ascend/fwkacllib/lib64)
set(MINDSPORE_RPATH ${MINDSPORE_RPATH}:/usr/local/Ascend/add-ons)
elseif (ENABLE_GPU)
@ -278,7 +289,7 @@ else ()
target_link_libraries(mindspore ibverbs rdmacm)
endif()
endif()
target_link_libraries(_c_expression PRIVATE -Wl,--whole-archive mindspore -Wl,--no-whole-archive)
target_link_libraries(_c_expression PRIVATE -Wl,--whole-archive mindspore proto_input -Wl,--no-whole-archive)
target_link_libraries(_c_expression PRIVATE mindspore::pybind11_module)
target_link_libraries(_c_expression PRIVATE mindspore_gvar)
endif ()
@ -287,11 +298,6 @@ if (USE_GLOG)
target_link_libraries(_c_expression PRIVATE mindspore::glog)
endif ()
if (ENABLE_DUMP_PROTO)
message("add protobuf lib to c_expression")
target_link_libraries(_c_expression PRIVATE mindspore::protobuf)
endif ()
if (ENABLE_GPU)
message("add gpu lib to c_expression")
target_link_libraries(_c_expression PRIVATE gpu_cuda_lib gpu_queue cublas
@ -324,7 +330,13 @@ add_library(inference SHARED
${LOAD_ONNX_SRC}
)
target_link_libraries(inference PRIVATE ${PYTHON_LIBRARIES} ${SECUREC_LIBRARY}
-Wl,--whole-archive mindspore -Wl,--no-whole-archive mindspore_gvar mindspore::protobuf)
-Wl,--whole-archive mindspore proto_input -Wl,--no-whole-archive mindspore_gvar)
if (ENABLE_D)
find_library(adump_server libadump_server.a ${ASCEND_RUNTIME_PATH} ${ASCEND_TOOLKIT_RUNTIME_PATH})
target_link_libraries(_c_expression PRIVATE ${adump_server})
target_link_libraries(inference PRIVATE ${adump_server})
endif()
if (ENABLE_CPU)
target_link_libraries(inference PRIVATE mindspore::dnnl mindspore::mkldnn)
@ -339,4 +351,3 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set_target_properties(inference PROPERTIES MACOSX_RPATH ON)
endif ()

@ -0,0 +1,108 @@
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "backend/kernel_compiler/cpu/adam_cpu_kernel.h"
#include <cmath>
#include <thread>
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"
#include "runtime/device/cpu/cpu_device_address.h"
#include "utils/ms_utils.h"
namespace mindspore {
namespace kernel {
template <typename T>
void AdamCPUKernel::LaunchAdam(T *var, T *m, T *v, float lr, float beta1, float beta2, float epsilon, const T *gradient,
size_t start, size_t end) {
for (size_t i = start; i < end; i++) {
m[i] += (gradient[i] - m[i]) * (1 - beta1);
v[i] += (gradient[i] * gradient[i] - v[i]) * (1 - beta2);
if (use_nesterov) {
var[i] -= lr * (m[i] * beta1 + (1 - beta1) * gradient[i]) / (std::sqrt(v[i]) + epsilon);
} else {
var[i] -= lr * m[i] / (std::sqrt(v[i]) + epsilon);
}
}
}
void AdamCPUKernel::InitKernel(const CNodePtr &kernel_node) {
MS_EXCEPTION_IF_NULL(kernel_node);
size_t input_num = AnfAlgo::GetInputTensorNum(kernel_node);
if (input_num != 10) {
MS_LOG(EXCEPTION) << "Input number is " << input_num << ", but Adam needs 10 inputs.";
}
size_t output_num = AnfAlgo::GetOutputTensorNum(kernel_node);
if (output_num != 3) {
MS_LOG(EXCEPTION) << "Output number is " << output_num << ", but Adam needs 3 outputs.";
}
use_nesterov = AnfAlgo::GetNodeAttr<bool>(kernel_node, "use_nesterov");
}
bool AdamCPUKernel::Launch(const std::vector<kernel::AddressPtr> &inputs,
const std::vector<kernel::AddressPtr> & /*workspace*/,
const std::vector<kernel::AddressPtr> &outputs) {
if (inputs.size() != 10) {
MS_LOG(EXCEPTION) << "Input number is " << inputs.size() << ", but Adam needs 10 inputs.";
}
if (outputs.size() != 3) {
MS_LOG(EXCEPTION) << "Output number is " << outputs.size() << ", but Adam needs 3 outputs.";
}
if (inputs[0]->size != inputs[1]->size || inputs[0]->size != inputs[2]->size || inputs[0]->size != inputs[9]->size) {
MS_LOG(EXCEPTION) << "Error input data size!";
}
size_t f_size = sizeof(float);
if (inputs[3]->size != f_size || inputs[4]->size != f_size || inputs[5]->size != f_size ||
inputs[6]->size != f_size || inputs[7]->size != f_size || inputs[8]->size != f_size) {
MS_LOG(EXCEPTION) << "The attribute beta_power, beta, lr and epsilon must be float!";
}
auto var = reinterpret_cast<float *>(inputs[0]->addr);
auto m = reinterpret_cast<float *>(inputs[1]->addr);
auto v = reinterpret_cast<float *>(inputs[2]->addr);
float beta1_power = reinterpret_cast<float *>(inputs[3]->addr)[0];
float beta2_power = reinterpret_cast<float *>(inputs[4]->addr)[0];
float lr = reinterpret_cast<float *>(inputs[5]->addr)[0];
float beta1 = reinterpret_cast<float *>(inputs[6]->addr)[0];
float beta2 = reinterpret_cast<float *>(inputs[7]->addr)[0];
float epsilon = reinterpret_cast<float *>(inputs[8]->addr)[0];
auto gradient = reinterpret_cast<float *>(inputs[9]->addr);
if (beta1_power == 1) {
MS_LOG(EXCEPTION) << "The beta1_power can't be set 1.";
}
float new_lr = lr * std::sqrt(1.0 - beta2_power) / (1 - beta1_power);
// multithreading
size_t lens = inputs[0]->size > 0 ? static_cast<size_t>(inputs[0]->size / sizeof(float)) : 1;
auto max_thread_num = std::thread::hardware_concurrency();
size_t thread_num = lens < 128 * max_thread_num ? std::ceil(lens / 128.0) : max_thread_num;
MS_LOG(INFO) << "lens=" << lens << "; use thread_num=" << thread_num << "; max_thread_num: " << max_thread_num;
std::vector<std::thread> threads;
threads.reserve(thread_num);
size_t start = 0;
size_t once_compute_size = (lens + thread_num - 1) / thread_num;
while (start < lens) {
size_t end = (start + once_compute_size) > lens ? lens : (start + once_compute_size);
threads.emplace_back(std::thread(&AdamCPUKernel::LaunchAdam<float>, this, var, m, v, new_lr, beta1, beta2, epsilon,
gradient, start, end));
start += once_compute_size;
}
for (size_t i = 0; i < threads.size(); ++i) {
threads[i].join();
}
return true;
}
} // namespace kernel
} // namespace mindspore

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save