You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

RELEASE.md 122 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449
  1. # MindSpore 1.2.0-rc1
  2. ## MindSpore 1.2.0 Release Notes
  3. ### Major Features and Improvements
  4. #### NewModels
  5. - [STABLE] Add CV models on Ascend: 3D Unet, Unet++, SSD-Resnet50-fpn, SSD-VGG16, crnn_seq2seq_ocr for BSI, CTPN, resnet18, DPN
  6. - [STABLE] Add CV models on GPU: Faster-RCNN
  7. - [STABLE] Add NLP models on Ascend: NAML, Fasttext, GRU, LSTM
  8. - [BETA] Add TPRR: Thinking Path Re-Ranker, an original ranked-base framework for Multi-Hop Question Answering which has won the first place in HotpotQA leaderboard.(Ascend)
  9. #### FrontEnd
  10. - [STABLE] Support side effects expression to ensure that the perform order of user's semantics is correct.(Ascend/GPU/CPU)
  11. - [STABLE] Support calculating the gradient for network that contain non-Tensor input parameters(int, float, bool, mstype,int, mstype.float, mstype.uint, mstype.bool_, tuple, list, dict).(Ascend/GPU/CPU)
  12. - [STABLE] Support the inverse of a bool Tensor.(Ascend/GPU/CPU)
  13. - [STABLE] Uniform the interface `isinstance`.(Ascend/GPU/CPU)
  14. - [STABLE] Support negative indexes.(Ascend/GPU/CPU)
  15. - [STABLE] Support 110+ Numpy-like interfaces in mindspore.numpy.(Ascend/GPU/CPU)
  16. - [STABLE] Support export/load mindir model with a size greater than 2 GB.
  17. - [STABLE] The optimizer supports gradient centralization.(Ascend)
  18. - [STABLE] Support support auc metric, rou metric, bleu score metric, confusion matrix metric, cosine similarity metric, dice metric, hausdorff distance metric, occlusion sensitivity metric, perplexity metric, mean surface distance metric, root mean surface distance metric.
  19. - [STABLE] Support use EmbeddingLookup with cache.(Ascend)
  20. #### Auto Parallel
  21. - [STABLE] Support AllGather and ReduceScatter fusion.(Ascend)
  22. - [STABLE] Support gradient accumulation feature in auto parallel mode.(Ascend/GPU)
  23. - [STABLE] Support running parallel optimizer with gradient accumulation.(Ascend)
  24. - [STABLE] Add the configuration of communication operators' fusion.(Ascend)
  25. #### Executor
  26. - [STABLE] Support inference with Nvidia GPU.
  27. - [STABLE] Support data parallelism in PyNative mode.(Ascend/GPU)
  28. - [STABLE] Optimize LSTM inference memory consumption in Graph mode with CPU.
  29. #### Sponge
  30. - [STABLE] Add SPONGE modules for molecular dynamics simulation, including Bond, Angle, Dihedral, Non Bond 14, NeighborList, Particle Mesh Ewald, Langevin MD and LIUJIAN MD.(GPU)
  31. #### DataSet
  32. - [STABLE] If the libnuma library is installed in the environment, you can run `export DATASET_ENABLE_NUMA=True` to configure NUMA binding. In multi-card training scenarios, the training data processing speed can be improved, thereby improving the network training efficiency.
  33. - [STABLE] Unify API Tensor structure of Training/Inference interfaces in C++ SDK.
  34. - [STABLE] Optimize duplicated Decode in data preprocess using cache, improve preprocess efficiency.
  35. - [STABLE] Support eager mode to run data augmentation in Python & C++.
  36. - [STABLE] Support more data augmentation operators(e.g. Affine, Perspective) in MindSpore-Lite.
  37. - [STABLE] Support light pipeline to process MindData in MindSpore-Lite training.
  38. - [STABLE] Support more data preprossing operators based on DVPP hardware module and can be used on on Ascend310 platform.
  39. - [STABLE] Support copy-free property for data in Ascend310 inference process scenarios.
  40. #### Running Data Recorder
  41. - [STABLE] Support running data recorder (RDR) for exception demarcation.
  42. - [STABLE] Provide records of multi-stage computational graphs, memory allocation information, graph execution order, stream execution order and task debug information when a "run task error" or "distribute task failed" occurs. (Ascend)
  43. - [STABLE] Provide records of multi-stage computational graphs, memory allocation information and graph execution order when a "SyncStream error" occurs. (GPU)
  44. #### 3D Feature
  45. - [STABLE] Support 3D ops: Conv3D, Conv3DBackpropInput, Conv3DBackpropFilter, Conv3DTranspose, BiasAdd, BiasAddGrad, PReLU, Transpose, Reshape, transdata, StrideSlice, MaxPool3D, MaxPool3DGrad, BinaryCrossEntropy, SigmoidCrossEntropyWithLogits, SigmoidCrossEntropyWithLogitsGrad, SoftmaxCrossEntropyWithLogits, SigmoidCrossEntropyWithLogits, SigmoidCrossEntropyWithLogitsGrad, BatchNorm3d, BatchNorm3dGrad, Dropout3d.
  46. - [STABLE] Support RMSELoss loss function, MAELoss loss function, FocalLoss loss function, DiceLoss binary loss function, and MultiClassDiceLoss multi-type loss function for 2D/3D network.
  47. - [STABLE] Add optimizer: AdamApplyOne(3D), ApplyMomentum(3D), SGD(3D).
  48. ### API Change
  49. #### Backwards Incompatible Change
  50. ##### Python API
  51. ###### `mindspore.numpy.array()`, `mindspore.numpy.asarray()`, `mindspore.numpy.asfarray()`, `mindspore.numpy.copy()` now support GRAPH mode, but cannot accept `numpy.ndarray` as input arguments anymore([!12726](https://gitee.com/mindspore/mindspore/pulls/12726))
  52. Previously, these interfaces can accept numpy.ndarray as arguments and convert numpy.ndarray to Tensor, but cannot be used in GRAPH mode.
  53. However, currently MindSpore Parser cannot parse numpy.ndarray in JIT-graph. To support these interfaces in graph mode, we have to remove `numpy.ndarray` support. With that being said, users can still use `Tensor` to convert `numpy.ndarray` to tensors.
  54. <table>
  55. <tr>
  56. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  57. </tr>
  58. <tr>
  59. <td>
  60. ```python
  61. >>> import mindspore.numpy as mnp
  62. >>> import numpy
  63. >>>
  64. >>> nd_array = numpy.array([1,2,3])
  65. >>> tensor = mnp.asarray(nd_array) # this line cannot be parsed in GRAPH mode
  66. ```
  67. </td>
  68. <td>
  69. ```python
  70. >>> import mindspore.numpy as mnp
  71. >>> import numpy
  72. >>>
  73. >>> tensor = mnp.asarray([1,2,3]) # this line can be parsed in GRAPH mode
  74. ```
  75. </td>
  76. </tr>
  77. </table>
  78. ###### mindspore.numpy interfaces remove support for keyword arguments `out` and `where`([!12726](https://gitee.com/mindspore/mindspore/pulls/12726))
  79. Previously, we have incomplete support for keyword arguments `out` and `where` in mindspore.numpy interfaces, however, the `out` argument is only functional when `where` argument is also provided, and `out` cannot be used to pass reference to numpy functions. Therefore, we have removed these two arguments to avoid any confusion users may have. Their original functionality can be found in [np.where](https://www.mindspore.cn/doc/api_python/zh-CN/master/mindspore/numpy/mindspore.numpy.where.html#mindspore.numpy.where)
  80. <table>
  81. <tr>
  82. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. ```python
  87. >>> import mindspore.numpy as np
  88. >>>
  89. >>> a = np.ones((3,3))
  90. >>> b = np.ones((3,3))
  91. >>> out = np.zeros((3,3))
  92. >>> where = np.asarray([[True, False, True],[False, False, True],[True, True, True]])
  93. >>> res = np.add(a, b, out=out, where=where) # `out` cannot be used as a reference, therefore it is misleading
  94. ```
  95. </td>
  96. <td>
  97. ```python
  98. >>> import mindspore.numpy as np
  99. >>>
  100. >>> a = np.ones((3,3))
  101. >>> b = np.ones((3,3))
  102. >>> out = np.zeros((3,3))
  103. >>> where = np.asarray([[True, False, True],[False, False, True],[True, True, True]])
  104. >>> res = np.add(a, b)
  105. >>> out = np.where(where, x=res, y=out) # instead of np.add(a, b, out=out, where=where)
  106. ```
  107. </td>
  108. </tr>
  109. </table>
  110. ###### Turn `ops.MakeRefKey` into an internal interface ([!12010](https://gitee.com/mindspore/mindspore/pulls/12010))
  111. Previously MakeRefKey is an external interface that is not used, now make it an internal interface with the same usage. We do not recommend users to use this interface, and we will remove the relevant introduction of this interface from the official website.
  112. ###### `ops.ApplyFtrl`, `ops.ApplyMomentum`, `ops.ApplyRMSProp`, `ops.ApplyCenteredRMSProp` change the output on Ascend backend from multiple to a single. ([!11895](https://gitee.com/mindspore/mindspore/pulls/11895))
  113. Previously the number of outputs of these operator is different on different backends. To unify their definition we change their output on Ascend backend from multiple to a single.
  114. ##### `P.FusedBatchNorm`, `P.FusedBatchNormEx` deleted ([!12115](https://gitee.com/mindspore/mindspore/pulls/12115))
  115. The FusedBatchNorm and FusedBatchNormEx interface has been deleted. Please use the batchnorm operator to replace it.
  116. ##### `MetaTensor` deleted ([!10325](https://gitee.com/mindspore/mindspore/pulls/10325))
  117. The MetaTensor interface has been deleted. The function of MetaTensor has been integrated into tensor.
  118. ###### `ControlDepend` is deleted, use `Depend` instead. The decorator `@C.add_flags(has_effect=True)` does not work. ([!13793](https://gitee.com/mindspore/mindspore/pulls/13793))
  119. Previously, we used ControlDepend to control the execution order of multiple operators. In version 1.2.0, mindspore introduces the auto-monad side effects expression to ensure that the perform order of user's semantics is correct. Therefore, ControlDepend is deleted and Depend is recommended.
  120. In most scenarios, if operators have IO side effects (such as print) or memory side effects (such as assign), they will be executed according to the user's semantics. In some scenarios, if the two operators A and B have no order dependency, and A must be executed before B, we recommend using Depend to specify their execution order. See the API documentation of the Depend operator for specific usage.
  121. <table>
  122. <tr>
  123. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  124. </tr>
  125. <tr>
  126. <td>
  127. ```python
  128. In some side-effect scenarios, we need to ensure the execution order of operators.
  129. In order to ensure that operator A is executed before operator B, it is recommended
  130. to insert the Depend operator between operators A and B.
  131. Previously, the ControlDepend operator was used to control the execution order.
  132. Since the ControlDepend operator is deprecated from version 1.1, it is recommended
  133. to use the Depend operator instead. The replacement method is as follows::
  134. a = A(x) ---> a = A(x)
  135. b = B(y) ---> y = Depend(y, a)
  136. ControlDepend(a, b) ---> b = B(y)
  137. ```
  138. </td>
  139. <td>
  140. ```python
  141. In most scenarios, if operators have IO side effects or memory side effects,
  142. they will be executed according to the user's semantics. In some scenarios,
  143. if the two operators A and B have no order dependency, and A must be executed
  144. before B, we recommend using Depend to specify their execution order. The
  145. usage method is as follows::
  146. a = A(x) ---> a = A(x)
  147. b = B(y) ---> y = Depend(y, a)
  148. ---> b = B(y)
  149. ```
  150. </td>
  151. </tr>
  152. </table>
  153. After the introduction of the auto-monad side effect expression feature, the decorator `@C.add_flags(has_effect=True)` does not work. If the decorator is used in the script, please modify. Take the overflow identification operator (without side effects) as an example, the modification method is as follows:
  154. <table>
  155. <tr>
  156. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  157. </tr>
  158. <tr>
  159. <td>
  160. ```python
  161. @C.add_flags(has_effect=True)
  162. def construct(self, *inputs):
  163. ...
  164. loss = self.network(*inputs)
  165. init = self.allo_status()
  166. self.clear_status(init)
  167. ...
  168. ```
  169. </td>
  170. <td>
  171. ```python
  172. def construct(self, *inputs):
  173. ...
  174. loss = self.network(*inputs)
  175. init = self.allo_status()
  176. init = F.depend(init, loss)
  177. clear_status = self.clear_status(init)
  178. ...
  179. ```
  180. </td>
  181. </tr>
  182. </table>
  183. ##### C++ API
  184. ###### C++ API support dual ABI now.([!12432](https://gitee.com/mindspore/mindspore/pulls/12432))
  185. 1.1.1 supports only the old ABI. Currently, both the new and the old are supported.
  186. <table>
  187. <tr>
  188. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  189. </tr>
  190. <tr>
  191. <td>
  192. ```cmake
  193. add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)
  194. ```
  195. </td>
  196. <td>
  197. ```cmake
  198. add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) # old ABI are supported
  199. add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=1) # new ABI are supprrted, too
  200. # write nothing, use new ABI as default
  201. ```
  202. </td>
  203. </tr>
  204. </table>
  205. ###### Context refactor.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  206. The `Context` class is refactored. For details, see the API docs.
  207. <table>
  208. <tr>
  209. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  210. </tr>
  211. <tr>
  212. <td>
  213. ```cpp
  214. GlobalContext::SetGlobalDeviceTarget(kDeviceTypeAscend310); // set device target is ascend310
  215. GlobalContext::SetGlobalDeviceID(0); // set device id is 0
  216. auto model_context = std::make_shared<ModelContext>(); // create a model context
  217. ModelContext::SetInsertOpConfigPath(model_context, "./aipp.cfg") // set aipp config file is ./aipp.cfg
  218. ```
  219. </td>
  220. <td>
  221. ```cpp
  222. auto model_context = std::make_shared<Context>(); // create a model context
  223. auto ascend310_info = std::make_shared<Ascend310DeviceInfo>();
  224. model_context.MutableDeviceInfo().push_back(ascend310_info ); // set device target is ascend310
  225. ascend310_info->SetDeviceID(0); // set device id is 0
  226. ascend310_info->SetInsertOpConfigPath("./aipp.cfg"); // set aipp config file is ./aipp.cfg
  227. ```
  228. </td>
  229. </tr>
  230. </table>
  231. ###### LoadModel interface changes.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  232. `LoadModel` is renamed `Load`. No exception is thrown new but the return status should be checked.
  233. <table>
  234. <tr>
  235. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  236. </tr>
  237. <tr>
  238. <td>
  239. ```cpp
  240. try {
  241. auto graph = Serialization::LoadModel(model_file_path, kMindIR);
  242. } catch (...) { ... }
  243. ```
  244. </td>
  245. <td>
  246. ```cpp
  247. Graph graph;
  248. auto ret = Serialization::Load(model_file_path, kMindIR, &graph);
  249. if (ret != kSuccess) { ... }
  250. ```
  251. </td>
  252. </tr>
  253. </table>
  254. ###### Model ctor changes.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  255. `Model` uses a non-parameter ctor now, and arguments are passed in through `Build`.
  256. <table>
  257. <tr>
  258. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  259. </tr>
  260. <tr>
  261. <td>
  262. ```cpp
  263. Model net(net_cell, model_context);
  264. auto ret = net.Build();
  265. if (ret != kSuccess) { ... }
  266. ```
  267. </td>
  268. <td>
  269. ```cpp
  270. Model net;
  271. auto ret = net.Build(net_cell, model_context);
  272. if (ret != kSuccess) { ... }
  273. ```
  274. </td>
  275. </tr>
  276. </table>
  277. ###### MSTensor::CreateTensor returns a native pointer now.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  278. `MSTensor::CreateTensor` and `MSTensor::CreateRefTensor` returns a native pointer now, need to be destroy by `DestroyTensorPtr`.
  279. <table>
  280. <tr>
  281. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  282. </tr>
  283. <tr>
  284. <td>
  285. ```cpp
  286. auto tensor = MSTensor::CreateTensor(xxx, xxx, ...);
  287. auto name = tensor.Name();
  288. ```
  289. </td>
  290. <td>
  291. ```cpp
  292. auto tensor = MSTensor::CreateTensor(xxx, xxx, ...);
  293. auto name = tensor->Name();
  294. MSTensor::DestroyTensorPtr(tensor);
  295. ```
  296. </td>
  297. </tr>
  298. </table>
  299. #### New features
  300. ##### Python API
  301. - Add SPONGE functions: `mindspore.ops.operations.BondForceWithAtomEnergy`, `mindspore.ops.operations.AngleForceWithAtomEnergy`, `mindspore.ops.operations.DihedralForceWithAtomEnergy`, `mindspore.ops.operations.Dihedral14LJCFForceWithAtomEnergy`, `mindspore.ops.operations.LJForceWithPMEDirectForce`, `mindspore.ops.operations.PMEExcludedForce`, `mindspore.ops.operations.PMEReciprocalForce`,`mindspore.ops.operations.BondEnergy`, `mindspore.ops.operations.AngleEnergy`,`mindspore.ops.operations.DihedralEnergy`, `mindspore.ops.operations.Dihedral14LJEnergy`, `mindspore.ops.operations.Dihedral14CFEnergy`,`mindspore.ops.operations.LJEnergy`, `mindspore.ops.operations.PMEEnergy`. All operators are supported in `GPU`.
  302. #### Deprecations
  303. ##### Python API
  304. ###### `nn.MatMul` is now deprecated in favor of `ops.matmul` ([!12817](https://gitee.com/mindspore/mindspore/pulls/12817))
  305. [ops.matmul](https://www.mindspore.cn/doc/api_python/zh-CN/master/mindspore/ops/mindspore.ops.matmul.html#mindspore.ops.matmul) follows the API of [numpy.matmul](https://numpy.org/doc/stable/reference/generated/numpy.matmul.html) as closely as possible. As a function interface, [ops.matmul](https://www.mindspore.cn/doc/api_python/zh-CN/master/mindspore/ops/mindspore.ops.matmul.html#mindspore.ops.matmul) is applied without instantiation, as opposed to `nn.MatMul`, which should only be used as a class instance.
  306. <table>
  307. <tr>
  308. <td style="text-align:center"> 1.1.1 </td> <td style="text-align:center"> 1.2.0 </td>
  309. </tr>
  310. <tr>
  311. <td>
  312. ```python
  313. >>> import numpy as np
  314. >>> from mindspore import Tensor, nn
  315. >>>
  316. >>> x = Tensor(np.ones((2, 3)).astype(onp.float32)
  317. >>> y = Tensor(np.ones((3, 4)).astype(onp.float32)
  318. >>> nn.MatMul()(x, y)
  319. ```
  320. </td>
  321. <td>
  322. ```python
  323. >>> import numpy as np
  324. >>> from mindspore import Tensor, ops
  325. >>>
  326. >>> x = Tensor(np.ones((2, 3)).astype(onp.float32)
  327. >>> y = Tensor(np.ones((3, 4)).astype(onp.float32)
  328. >>> ops.matmul(x, y)
  329. ```
  330. </td>
  331. </tr>
  332. </table>
  333. ### Bug fixes
  334. #### FrontEnd
  335. - fix the null pointer problem of evaluator in control flow.([!13312](https://gitee.com/mindspore/mindspore/pulls/13312))
  336. - fix parameter naming conflict bug for CellList and SequentialCell. ([!13260](https://gitee.com/mindspore/mindspore/pulls/13260))
  337. #### Executor
  338. - fix executor pending task not execute in some heterogeneous cases.([!13465](https://gitee.com/mindspore/mindspore/pulls/13465))
  339. - add passes to support frontend IR unification, including following operations: SliceGrad([!11783](https://gitee.com/mindspore/mindspore/pulls/11783)), ApplyFtrl, ApplyMomentum, ApplyRMSProp, CenteredRMSProp([!11895](https://gitee.com/mindspore/mindspore/pulls/11895)), AvgPoolGrad([!12813](https://gitee.com/mindspore/mindspore/pulls/12813)), BatchNorm([!12115](https://gitee.com/mindspore/mindspore/pulls/12115))
  340. #### Dataset
  341. - Fix getter functions(e.g. GetDatasetSize) terminated abnormally when use python multi-processing. ([!13571](https://gitee.com/mindspore/mindspore/pulls/13571), [!13823](https://gitee.com/mindspore/mindspore/pulls/13823))
  342. - Fix unclear error log of data augmentation operators. ([!12398](https://gitee.com/mindspore/mindspore/pulls/12398), [!12883](https://gitee.com/mindspore/mindspore/pulls/12883), [!13176](https://gitee.com/mindspore/mindspore/pulls/13176))
  343. - Fix profiling performs abnormally when sink_size = False, as saving data is later than profiling analysis. ([!13944](https://gitee.com/mindspore/mindspore/pulls/13944))
  344. ## MindSpore Lite
  345. ### Major Features and Improvements
  346. #### Converter and runtime
  347. 1. Support TensorFlow model in Converter except aware-training model.
  348. 2. Add fusion pattern for same horizontal operators in Converter.
  349. 3. Support Jar in x86_64 system for integrating into server with Java backend conveniently.
  350. 4. Provide unified runtime API for developer reusing their code between cloud side and end side.[BETA]
  351. 5. Improve control-flow capabilities continually: Support GRU fusion in Converter; Support weight-quant for control-flow model; Support control-flow model inference with half precision; Support nested control-flow model.[BETA]
  352. #### ARM backend optimization
  353. 1. Add NLP dependent float16 operators(like lstm) to enhance inference performance.
  354. 2. Optimize operators: lstm, gru, depthwise.
  355. 3. Add 6 NPU operators(like FullConnection), and fix some bugs about buildIR failed.
  356. #### OpenCL backend
  357. 1. Add new ops:add 10+ ops,total 72 ops;
  358. 2. Performance optimization:by memory layout optimize,block tiling,Performance improved by 30% compared to version 1.1 at Adreno GPU.
  359. 3. Initialization time optimization:initialization time improve 100% vs MSLITE Version1.1 by store kernel cache as binary.
  360. 4. Support Java call on Mali or Adreno GPU.
  361. #### Post quantization
  362. 1. Support quantization of gather and lstm ops.
  363. 2. Support quantizatizing TF Lite models with sub-graph node.
  364. 3. Add quantiztion strategy to decide quantize ops or not,less accuracy loss and higher compression rate.
  365. #### Training on Device
  366. 1. Virtual batching, use mini-batch to minic large batch in theorical with few RAM consumption.
  367. 2. Converter unify, do not compile tod and iod converter separately.
  368. 3. Performance optimization to BWD ops.
  369. 4. TrainLoop with Off-The-Shelf Functionality blocks, like LR scheduler, Loss Monitor, Ckpt Saver, Accuracy Monitor.
  370. 5. Integration of code with Minddata lite.
  371. 6. Support more networks (googlenet, densenet, shufflenetv2, nin, vgg) and operators.
  372. #### Codegen
  373. 1. Support 79 ops for the ARM platform and all CMSIS ops for Arm Cortex-M Series.
  374. 2. Multiplatform support, including Android, IoT Devices.
  375. 3. Support offline model weight preprocessing while compiling.
  376. 4. Support offline memory reuse computing for minimum runtime buffer size.
  377. ### API Change
  378. #### API Incompatible Change
  379. ##### C++ API
  380. ###### Add header file named lite_types.h for some common data structs. ([!12262](https://gitee.com/mindspore/mindspore/pulls/12262))
  381. Previously, some common data structs such as `CpuBindMode` and `DeviceType` are in context.h, this may cause cross-dependency between headers. So we create a new header named lite_types.h for some common data structs and move `CpuBindMode` and `DeviceType` from context.h into lite_types.h.
  382. <table>
  383. <tr>
  384. <td style="text-align:center"> lite_types.h </td>
  385. </tr>
  386. <tr>
  387. <td>
  388. ```cpp
  389. namespace mindspore::lite {
  390. /// \brief CpuBindMode defined for holding bind cpu strategy argument.
  391. typedef enum {
  392. NO_BIND, /**< no bind */
  393. HIGHER_CPU, /**< bind higher cpu first */
  394. MID_CPU /**< bind middle cpu first */
  395. } CpuBindMode;
  396. /// \brief DeviceType defined for holding user's preferred backend.
  397. typedef enum {
  398. DT_CPU, /**< CPU device type */
  399. DT_GPU, /**< GPU device type */
  400. DT_NPU /**< NPU device type */
  401. } DeviceType;
  402. } // namespace mindspore::lite
  403. ```
  404. </td>
  405. </tr>
  406. </table>
  407. ###### Add some new interfaces in ms_tensor.h for unified runtime API.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  408. Previously, users could not create `MSTensor` or modify ``MSTensor, all `MSTensor` are created and managed by framework. However users need to create or modify MSTensor sometimes such as pre-processing input data. So we provide two new interfaces in ms_tensor.h: `CreateTensor` interface for creating `MSTensor` by user and `set_shape` interface for modifying the shape of `MSTensor`.
  409. <table>
  410. <tr>
  411. <td style="text-align:center"> CreateTensor </td>
  412. </tr>
  413. <tr>
  414. <td>
  415. ```cpp
  416. /// \brief Create a MSTensor.
  417. ///
  418. /// \return Pointer to an instance of MindSpore Lite MSTensor.
  419. static MSTensor *CreateTensor(const std::string &name, TypeId type, const std::vector<int> &shape, const void *data,
  420. size_t data_len);
  421. ```
  422. </td>
  423. </tr>
  424. </table>
  425. <table>
  426. <tr>
  427. <td style="text-align:center"> set_shape </td>
  428. </tr>
  429. <tr>
  430. <td>
  431. ```cpp
  432. /// \brief Set the shape of MSTensor.
  433. virtual void set_shape(const std::vector<int> &shape) = 0;
  434. ```
  435. </td>
  436. </tr>
  437. </table>
  438. Previously, users could access to data of `MSTensor` by interface named `MutableData`. However `MutableData` is not only returning data of tensor but also allocating data for tensor if its data is nullptr. So we provide a new interfaces in ms_tensor.h named `data` for returning data of tensor without allocating automatically.
  439. <table>
  440. <tr>
  441. <td style="text-align:center"> data </td>
  442. </tr>
  443. <tr>
  444. <td>
  445. ```cpp
  446. /// \brief Get the pointer of data in MSTensor.
  447. ///
  448. /// \note The data pointer can be used to both write and read data in MSTensor. No memory buffer will be
  449. /// allocated.
  450. ///
  451. /// \return the pointer points to data in MSTensor.
  452. virtual void *data() = 0;
  453. ```
  454. </td>
  455. </tr>
  456. </table>
  457. ###### Delete `DimensionSize()` in ms_tensor.h.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  458. The interface named `DimensionSize` is fuinctionally overlapped with the interface named `shape`. For the simplicity of the interface, we delete `DimensionSize` and recommend users to use the new interface named `shape` instead.
  459. <table>
  460. <tr>
  461. <td style="text-align:center"> DimensionSize() </td>
  462. </tr>
  463. <tr>
  464. <td>
  465. ```cpp
  466. /// \brief Get size of the dimension of the MindSpore Lite MSTensor index by the parameter index.
  467. ///
  468. /// \param[in] index Define index of dimension returned.
  469. ///
  470. /// \return Size of dimension of the MindSpore Lite MSTensor.
  471. virtual int DimensionSize(size_t index) const = 0;
  472. ```
  473. </td>
  474. </tr>
  475. </table>
  476. ###### Move allocator from namespace mindspore::lite to namespace lite for unified runtime API.([!13515](https://gitee.com/mindspore/mindspore/pulls/13515))
  477. Previously, class `Allocator` is in namespace mindspore::lite. Considering unified allocator interface for unified runtime API, we move `Allocator` to namespace mindspore.
  478. <table>
  479. <tr>
  480. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.2.0 </td>
  481. </tr>
  482. <tr>
  483. <td>
  484. ```cpp
  485. namespace mindspore::lite {
  486. /// \brief Allocator defined a memory pool for malloc memory and free memory dynamically.
  487. ///
  488. /// \note List public class and interface for reference.
  489. class Allocator;
  490. }
  491. ```
  492. </td>
  493. <td>
  494. ```cpp
  495. namespace mindspore {
  496. /// \brief Allocator defined a memory pool for malloc memory and free memory dynamically.
  497. ///
  498. /// \note List public class and interface for reference.
  499. class Allocator;
  500. }
  501. ```
  502. </td>
  503. </tr>
  504. </table>
  505. ### Bug fixes
  506. 1. Fix the bug that the array in kernel registrar is not initialized.
  507. 2. Fix segment fault caused by releasing of OpParameter in Crop kernel in mistake.
  508. 3. Fix the bug that the MINDIR aware-training model is finally interpreted as weight-quant model.
  509. ## Contributors
  510. Thanks goes to these wonderful people:
  511. Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, dong-li001, eric, Eric, fary86, fuzhiye, Gaoxiong, GAO_HYP_XYJ, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Islam Amin, Jesse, , Jiabin Liu, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, Lin Xh, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luopengting, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, Ming_blue, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, qianjiahong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wudenggang, wukesong, wuweikang, wuxuejian, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhanghui_china, zhangxinfeng3, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhiqwang, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, zymaa.
  512. Contributions of any kind are welcome!
  513. # MindSpore 1.1.1 Release Notes
  514. ## MindSpore
  515. ### Major Features and Improvements
  516. #### NewModels
  517. - [STABLE] BGCF: a Bayesian Graph Collaborative Filtering(BGCF) framework used to model the uncertainty in the user-item interaction graph and thus recommend accurate and diverse items on Amazon recommendation dataset.(Ascend)
  518. - [STABLE] GRU: a recurrent neural network architecture like the LSTM(Long-Short Term Memory) on Multi30K dataset.(Ascend)
  519. - [STABLE] FastText: a simple and efficient text classification algorithm on AG's news topic classification dataset, DBPedia Ontology classification dataset and Yelp Review Polarity dataset.(Ascend)
  520. - [STABLE] LSTM: a recurrent neural network architecture used to learn word vectors for sentiment analysis on aclImdb_v1 dataset.(Ascend)
  521. - [STABLE] SimplePoseNet: a convolution-based neural network for the task of human pose estimation and tracking on COCO2017 dataset.(Ascend)
  522. #### FrontEnd
  523. - [BETA] Support Tensor Fancy Index Getitem with tuple and list. (Ascend/GPU/CPU)
  524. ### Backwards Incompatible Change
  525. #### Python API
  526. ##### `ops.AvgPool`, `ops.MaxPool`, `ops.MaxPoolWithArgmax` change attr name from 'ksize', 'padding' to 'kernel_size', 'pad_mode' ([!11350](https://gitee.com/mindspore/mindspore/pulls/11350))
  527. Previously the kernel size and pad mode attrs of pooling ops are named "ksize" and "padding", which is a little puzzling and inconsistent with convolution ops. So they are rename to "kernel_size" and "pad_mode".
  528. <table>
  529. <tr>
  530. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  531. </tr>
  532. <tr>
  533. <td>
  534. ```python
  535. >>> import mindspore.ops as ops
  536. >>>
  537. >>> avg_pool = ops.AvgPool(ksize=2, padding='same')
  538. >>> max_pool = ops.MaxPool(ksize=2, padding='same')
  539. >>> max_pool_with_argmax = ops.MaxPoolWithArgmax(ksize=2, padding='same')
  540. ```
  541. </td>
  542. <td>
  543. ```python
  544. >>> import mindspore.ops as ops
  545. >>>
  546. >>> avg_pool = ops.AvgPool(kernel_size=2, pad_mode='same')
  547. >>> max_pool = ops.MaxPool(kernel_size=2, pad_mode='same')
  548. >>> max_pool_with_argmax = ops.MaxPoolWithArgmax(kernel_size=2, pad_mode='same')
  549. ```
  550. </td>
  551. </tr>
  552. </table>
  553. ##### `ops.TensorAdd`, change API name to `ops.Add` ([!11568](https://gitee.com/mindspore/mindspore/pulls/11568))
  554. The operator name TensorAdd is not standardized, it is changed to Add. The old interface can be used continuously, but will be deleted in subsequent versions, it is recommended to use and switch to the latest interface.
  555. <table>
  556. <tr>
  557. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  558. </tr>
  559. <tr>
  560. <td>
  561. ```python
  562. >>> import mindspore.ops as ops
  563. >>>
  564. >>> add = ops.TensorAdd()
  565. ```
  566. </td>
  567. <td>
  568. ```python
  569. >>> import mindspore.ops as ops
  570. >>>
  571. >>> add = ops.Add()
  572. ```
  573. </td>
  574. </tr>
  575. </table>
  576. ##### `ops.Gelu`, `ops.GeluGrad`, `ops.FastGelu`, `ops.FastGeluGrad`, change API name to `ops.GeLU`, `ops.GeLUGrad`, `ops.FastGeLU`, `ops.FastGeLUGrad` ([!11603](https://gitee.com/mindspore/mindspore/pulls/11603))
  577. Gelu, GeluGrad, FastGelu, and FastGeluGrad names are unified into ReLU naming rules, "lu" is changed to the uppercase "LU". The old interface can be used continuously, but will be deleted in subsequent versions, it is recommended to use and switch to the latest interface.
  578. <table>
  579. <tr>
  580. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  581. </tr>
  582. <tr>
  583. <td>
  584. ```python
  585. >>> import mindspore.ops as ops
  586. >>>
  587. >>> gelu = ops.Gelu()
  588. >>> gelu_grad = ops.GeluGrad()
  589. >>> fast_gelu = ops.FastGelu()
  590. >>> fast_gelu_grad = ops.FastGeluGrad()
  591. ```
  592. </td>
  593. <td>
  594. ```python
  595. >>> import mindspore.ops as ops
  596. >>>
  597. >>> gelu = ops.GeLU()
  598. >>> gelu_grad = ops.GeLUGrad()
  599. >>> fast_gelu = ops.FastGeLU()
  600. >>> fast_gelu_grad = ops.FastGeLUGrad()
  601. ```
  602. </td>
  603. </tr>
  604. </table>
  605. ##### `ops.GatherV2`, change API name to `ops.Gather` ([!11713](https://gitee.com/mindspore/mindspore/pulls/11713))
  606. GatherV2 is changed to Gather. The old interface can be used continuously, but will be deleted in subsequent versions, it is recommended to use and switch to the latest interface.
  607. <table>
  608. <tr>
  609. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  610. </tr>
  611. <tr>
  612. <td>
  613. ```python
  614. >>> import mindspore.ops as ops
  615. >>>
  616. >>> gather = ops.GatherV2()
  617. ```
  618. </td>
  619. <td>
  620. ```python
  621. >>> import mindspore.ops as ops
  622. >>>
  623. >>> gather = ops.Gather()
  624. ```
  625. </td>
  626. </tr>
  627. </table>
  628. ##### `ops.Pack`、`ops.Unpack`, change API name to `ops.Stack`、`ops.Unstack` ([!11828](https://gitee.com/mindspore/mindspore/pulls/11828))
  629. Pack is changed to Stack, and Unpack is changed to Unstack. The old interface can be used continuously, but will be deleted in subsequent versions, it is recommended to use and switch to the latest interface.
  630. <table>
  631. <tr>
  632. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  633. </tr>
  634. <tr>
  635. <td>
  636. ```python
  637. >>> import mindspore.ops as ops
  638. >>>
  639. >>> pack= ops.Pack()
  640. >>> unpack= ops.Unpack()
  641. ```
  642. </td>
  643. <td>
  644. ```python
  645. >>> import mindspore.ops as ops
  646. >>>
  647. >>> stack= ops.Stack()
  648. >>> unstack= ops.Unstack()
  649. ```
  650. </td>
  651. </tr>
  652. </table>
  653. ##### `ops.ControlDepend`, add deprecated to ControlDepend ([!11844](https://gitee.com/mindspore/mindspore/pulls/11844))
  654. ControlDepend is deprecated and will be removed in a future version, use Depend instead.
  655. <table>
  656. <tr>
  657. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  658. </tr>
  659. <tr>
  660. <td>
  661. ```pythonNote:
  662. Note:
  663. This operation does not work in `PYNATIVE_MODE`.
  664. ```
  665. </td>
  666. <td>
  667. ```python
  668. Note:
  669. This operation does not work in `PYNATIVE_MODE`.
  670. `ControlDepend` is deprecated from version 1.1 and will be removed in a future version, use `Depend` instead.
  671. ```
  672. </td>
  673. </tr>
  674. </table>
  675. ##### `ops.Depend`, add operator description and use case ([!11815](https://gitee.com/mindspore/mindspore/pulls/11815)), ([!11879](https://gitee.com/mindspore/mindspore/pulls/11879))
  676. Since the ControlDepend operator will be deprecated from version 1.2, it is recommended to use the Depend operator instead.
  677. <table>
  678. <tr>
  679. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  680. </tr>
  681. <tr>
  682. <td>
  683. ```python
  684. Depend is used for processing side-effect operations.
  685. Inputs:
  686. - **value** (Tensor) - the real value to return for depend operator.
  687. - **expr** (Expression) - the expression to execute with no outputs.
  688. Outputs:
  689. Tensor, the value passed by last operator.
  690. Supported Platforms:
  691. ``Ascend`` ``GPU`` ``CPU``
  692. ```
  693. </td>
  694. <td>
  695. ```python
  696. Depend is used for processing dependency operations.
  697. In some side-effect scenarios, we need to ensure the execution order of operators.
  698. In order to ensure that operator A is executed before operator B, it is recommended
  699. to insert the Depend operator between operators A and B.
  700. Previously, the ControlDepend operator was used to control the execution order.
  701. Since the ControlDepend operator will be deprecated from version 1.2, it is
  702. recommended to use the Depend operator instead. The replacement method is as follows::
  703. a = A(x) ---> a = A(x)
  704. b = B(y) ---> y = Depend(y, a)
  705. ControlDepend(a, b) ---> b = B(y)
  706. Inputs:
  707. - **value** (Tensor) - the real value to return for depend operator.
  708. - **expr** (Expression) - the expression to execute with no outputs.
  709. Outputs:
  710. Tensor, the value passed by last operator.
  711. Supported Platforms:
  712. ``Ascend`` ``GPU`` ``CPU``
  713. Examples:
  714. >>> import numpy as np
  715. >>> import mindspore
  716. >>> import mindspore.nn as nn
  717. >>> import mindspore.ops.operations as P
  718. >>> from mindspore import Tensor
  719. >>> class Net(nn.Cell):
  720. ... def __init__(self):
  721. ... super(Net, self).__init__()
  722. ... self.softmax = P.Softmax()
  723. ... self.depend = P.Depend()
  724. ...
  725. ... def construct(self, x, y):
  726. ... mul = x - y
  727. ... y = self.depend(y, mul)
  728. ... ret = self.softmax(y)
  729. ... return ret
  730. ...
  731. >>> x = Tensor(np.ones([4, 5]), dtype=mindspore.float32)
  732. >>> y = Tensor(np.ones([4, 5]), dtype=mindspore.float32)
  733. >>> net = Net()
  734. >>> output = net(x, y)
  735. >>> print(output)
  736. [[0.2 0.2 0.2 0.2 0.2]
  737. [0.2 0.2 0.2 0.2 0.2]
  738. [0.2 0.2 0.2 0.2 0.2]
  739. [0.2 0.2 0.2 0.2 0.2]]
  740. ```
  741. </td>
  742. </tr>
  743. </table>
  744. #### C++ API
  745. ##### change namespace from `mindspore::api` to `mindspore` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  746. <table>
  747. <tr>
  748. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  749. </tr>
  750. <tr>
  751. <td>
  752. ```c++
  753. namespace ms = mindspore::api;
  754. ```
  755. </td>
  756. <td>
  757. ```c++
  758. namespace ms = mindspore;
  759. ```
  760. </td>
  761. </tr>
  762. </table>
  763. ##### `Context` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  764. <table>
  765. <tr>
  766. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  767. </tr>
  768. <tr>
  769. <td>
  770. ```c++
  771. ms::Context::Instance().SetDeviceTarget(ms::kDeviceTypeAscend310).SetDeviceID(0);
  772. ```
  773. </td>
  774. <td>
  775. ```c++
  776. ms::GlobalContext::SetGlobalDeviceTarget(ms::kDeviceTypeAscend310);
  777. ms::GlobalContext::SetGlobalDeviceID(0);
  778. ```
  779. </td>
  780. </tr>
  781. </table>
  782. ##### rename `Tensor` to `MSTensor` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  783. <table>
  784. <tr>
  785. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  786. </tr>
  787. <tr>
  788. <td>
  789. ```c++
  790. ms::Tensor a;
  791. ```
  792. </td>
  793. <td>
  794. ```c++
  795. ms::MSTensor a;
  796. ```
  797. </td>
  798. </tr>
  799. </table>
  800. ##### `Model` move setting of model options from `Build` to ctor `Model` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  801. <table>
  802. <tr>
  803. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  804. </tr>
  805. <tr>
  806. <td>
  807. ```c++
  808. ms::Model model(graph_cell);
  809. model.Build(model_options);
  810. ```
  811. </td>
  812. <td>
  813. ```c++
  814. ms::Model model(graph_cell, model_context);
  815. model.Build();
  816. ```
  817. </td>
  818. </tr>
  819. </table>
  820. ##### `Model` modify `GetInputsInfo`, `GetOutputsInfo` to `GetInputs`, `GetOutputs` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  821. <table>
  822. <tr>
  823. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  824. </tr>
  825. <tr>
  826. <td>
  827. ```c++
  828. std::vector<std::string> names;
  829. std::vector<ms::DataType> types;
  830. std::vector<std::vector<int64_t>> shapes;
  831. std::vector<size_t> mem_sizes;
  832. model.GetInputsInfo(&names, &types, &shapes, &mem_sizes);
  833. std::cout << "Input 0 name: " << names[0] << std::endl;
  834. ```
  835. </td>
  836. <td>
  837. ```c++
  838. auto inputs = model.GetInputs();
  839. std::cout << "Input 0 name: " << inputs[0].Name() << std::endl;
  840. ```
  841. </td>
  842. </tr>
  843. </table>
  844. ##### `Model` modify `Predict` parameters type from `Buffer` to `MSTensor` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  845. <table>
  846. <tr>
  847. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  848. </tr>
  849. <tr>
  850. <td>
  851. ```c++
  852. std::vector<ms::Buffer> inputs;
  853. std::vector<ms::Buffer> outputs;
  854. model.Predict(inputs, &outputs);
  855. ```
  856. </td>
  857. <td>
  858. ```c++
  859. std::vector<ms::MSTensor> inputs;
  860. std::vector<ms::MSTensor> outputs;
  861. model.Predict(inputs, &outputs);
  862. ```
  863. </td>
  864. </tr>
  865. </table>
  866. ### Deprecations
  867. #### Python API
  868. ##### `ops.SpaceToBatch`, `ops.BatchToSpace` are deprecated in favor of `ops.SpaceToBatchND`, `ops.BatchToSpaceND`([!11527](https://gitee.com/mindspore/mindspore/pulls/11527))
  869. The `ops.SpaceToBatchND`, `ops.BatchToSpaceND` are more general and have same behavior as `ops.SpaceToBatch`, `ops.BatchToSpace` when `block_shape` is a int.
  870. ##### `ops.DepthwiseConv2dNative` is deprecated in favor of `nn.Conv2D`([!11702](https://gitee.com/mindspore/mindspore/pulls/11702))
  871. The `ops.DepthwiseConv2dNative` is only supported by Ascend, it is recommended to directly use `nn.Conv2D`. If `group` is equal to `in_ channels` and `out_channels`, the 2D convolution layer is also a 2D depthwise convolution layer.
  872. ## Contributors
  873. Thanks goes to these wonderful people:
  874. Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, eric, Eric, fary86, fuzhiye, Gaoxiong, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Jesse, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, zymaa
  875. Contributions of any kind are welcome!
  876. # MindSpore 1.1.0 Release Notes
  877. ## MindSpore
  878. ### Major Features and Improvements
  879. #### NewModels
  880. - [STABLE] GNMT v2: similar to the model described in Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation, which is mainly used for corpus translation, on WMT Englis-German dataset.(Ascend)
  881. - [STABLE] MaskRCNN: a conceptually simple, flexible, and general framework for object instance segmentation on COCO2017 dataset.(Ascend)
  882. - [STABLE] YOLOv4: a state-of-the-art detector which is faster and more accurate than all available alternative detectors on MS COCO dataset.(Ascend)
  883. - [STABLE] Openpose: proposes a bottom-up human attitude estimation algorithm using Part Affinity Fields on COCO2017 dataset.(Ascend)
  884. - [STABLE] CNN-CTC: proposes three major contributions to addresses scene text recognition (STR) on MJSynth and SynthText dataset.(Ascend)
  885. - [STABLE] CenterFace: a practical anchor-free face detection and alignment method for edge devices on WiderFace dataset.(Ascend)
  886. - [STABLE] ShuffleNetV2: a much faster and more accurate network than the previous networks on ImageNet 2012 dataset.(GPU)
  887. - [STABLE] EfficientNet-B0: a new scaling method that uniformly scales all dimensions of depth/width/resolution using a simple yet highly effective compound coefficient on ImageNet 2012 dataset.(GPU)
  888. - [BETA] SSD-GhostNet: based on an Ghost module structure which generate more features from cheap operations on Oxford-IIIT Pet dataset.(Ascend)
  889. - [BETA] DS-CNN: Depthwise separable convolutional neural network on Speech commands dataset.(Ascend)
  890. - [BETA] DeepPotentialH2O: A neural network model for molecular dynamics simulations. (Ascend)
  891. - [BETA] GOMO: A classical numerical method called GOMO for ocean simulation. (GPU)
  892. #### FrontEnd
  893. - [STABLE] Refactor the MINDIR to support 310 inference(Ascend).
  894. - [STABLE] The execution backend of sparse operations in optimizer can be set through 'target'. (Ascend/GPU/CPU)
  895. - [STABLE] Support saving specified network to checkpoint and filtering parameters according to prefix when load checkpoint. (Ascend/GPU/CPU)
  896. - [STABLE] Allow users choose whether to load parameter into network strictly.(Ascend/GPU/CPU)
  897. - [STABLE] Before training, in graph mode, in order to have the same network initialization parameter values ​​for all devices, broadcast the parameters on device 0 to other devices. (Ascend/GPU)
  898. - [STABLE] Support if by if of control flow subgraph. (Ascend/GPU)
  899. - [STABLE] Support the judgment that whether a tensor is in a list. (Ascend/GPU/CPU)
  900. - [STABLE] Support to get a value by using the corresponding key in a dictionary in the network; Support to get keys and values of a dictionary in the network. (Ascend/GPU/CPU)
  901. - [STABLE] Support Tensor in enumerate. (Ascend/GPU/CPU)
  902. - [STABLE] Support multilevel index assignment. (Ascend/GPU/CPU)
  903. - [STABLE] Support the 'expand_as','view','abs','mean' method of Tensor. (Ascend/GPU/CPU)
  904. - [STABLE] Support ResizeBilinear operation transfer ratio. (Ascend)
  905. - [STABLE] nn.Matmul supports matrix-vector product and batched matrix multiply. (Ascend/GPU)
  906. - [STABLE] nn.Dense supports input tensor whose dimension can be greater than 2. (Ascend/GPU)
  907. - [BETA] Support higher order differentiation for partial operators.(CPU/GPU/Ascend)
  908. - [STABLE] Support Tensor Augassign.(Ascend/GPU)
  909. - [BETA] Support 22 numpy native interfaces.
  910. #### Auto Parallel
  911. - [STABLE] Support parallel optimizer with weight shard. (Ascend/GPU)
  912. - [STABLE] Support distributed operators: element-wise series, UnsortedSegmentSum, UnsortedSegmentMin, Split, BroadcastTo and Unique etc. (Ascend/GPU)
  913. - [STABLE] Support distributed model prediction. (Ascend/GPU)
  914. - [STABLE] Support auto mixed precision level "O2" in auto and semi auto parallel mode. (Ascend/GPU)
  915. - [STABLE] Add MultiFieldEmbeddingLookup high-level interface. (Ascend/GPU)
  916. #### Executor
  917. - [STABLE] ResNet50 performance optimize. (GPU)
  918. - [STABLE] Support modelzoo net in PyNative mode(Ascend 29, GPU 23, CPU 2).(Ascend/GPU/CPU)
  919. - [STABLE] Support PyNative mode on CPU.(CPU)
  920. - [STABLE] Optimize performance in PyNative mode.(Ascend/GPU/CPU)
  921. - [STABLE] Support Safe Optimized Memory Allocation Solver (SOMAS) on Ascend to improve the memory-reuse, the batch size of Bert large model (128 sequence length) is increased from 160 to 208.(Ascend)
  922. - [BETA] Support second order differentiation in PyNative mode.(Ascend/GPU)
  923. - [DEMO] Add distributed trainning in PyNative mode.(Ascend/GPU)
  924. #### MDP
  925. - [STABLE] Add new operators for Ascend and GPU: IGamma, LGamma, DiGamma;
  926. - [STABLE] Add new distributions for Ascend and GPU: LogNormal, and Logistic;
  927. - [BETA] Add new distributions for Ascend only: Gumbel, Cauchy, Gamma, Beta, and Poisson; Add Categorical distribution for GPU;
  928. - [STABLE] Add new bijectors for Ascend and GPU: GumbelCDF, Invert;
  929. - [STABLE] Add Bayesian layer realized by local reparameterization method for Ascend and GPU;
  930. - [STABLE] Add Anomaly Detection Toolbox based on VAE for Ascend and GPU.
  931. #### DataSet
  932. - [STABLE] Support single node multi-p distributed cache data sharing
  933. - [STABLE] Support GPU profiling with data processing
  934. - [STABLE] Support YOLOV3 dynamic shape in sink mode with dataset
  935. - [STABLE] Support unique processing in the data processing pipeline
  936. - [STABLE] Python layer parameter verification error information unified
  937. ### API Change
  938. #### Backwards Incompatible Change
  939. ##### Python API
  940. ###### Delete shape and dtype of class Initializer ([!7373](https://gitee.com/mindspore/mindspore/pulls/7373/files))
  941. Delete shape and dtype attributes of Initializer class.
  942. ###### Modify the return type of initializer ([!7373](https://gitee.com/mindspore/mindspore/pulls/7373/files))
  943. Previously, the return type of initializer function may be string, number, instance of class Tensor or subclass of class Initializer.
  944. After modification, initializer function will return instance of class MetaTensor, class Tensor or subclass of class Initializer.
  945. Noted that the MetaTensor is forbidden to initialize parameters, so we recommend that use str, number or subclass of Initializer for parameters initialization rather than the initializer functions.
  946. <table>
  947. <tr>
  948. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  949. </tr>
  950. <tr>
  951. <td>
  952. ```python
  953. >>> import mindspore.nn as nn
  954. >>> from mindspore.common import initializer
  955. >>> from mindspore import dtype as mstype
  956. >>>
  957. >>> def conv3x3(in_channels, out_channels)
  958. >>> weight = initializer('XavierUniform', shape=(3, 2, 32, 32), dtype=mstype.float32)
  959. >>> return nn.Conv2d(in_channels, out_channels, weight_init=weight, has_bias=False, pad_mode="same")
  960. ```
  961. </td>
  962. <td>
  963. ```python
  964. >>> import mindspore.nn as nn
  965. >>> from mindspore.common.initializer import XavierUniform
  966. >>>
  967. >>> #1) using string
  968. >>> def conv3x3(in_channels, out_channels)
  969. >>> return nn.Conv2d(in_channels, out_channels, weight_init='XavierUniform', has_bias=False, pad_mode="same")
  970. >>>
  971. >>> #2) using subclass of class Initializer
  972. >>> def conv3x3(in_channels, out_channels)
  973. >>> return nn.Conv2d(in_channels, out_channels, weight_init=XavierUniform(), has_bias=False, pad_mode="same")
  974. ```
  975. </td>
  976. </tr>
  977. </table>
  978. Advantages:
  979. After modification, we can use the same instance of Initializer to initialize parameters of different shapes, which was not allowed before.
  980. <table>
  981. <tr>
  982. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  983. </tr>
  984. <tr>
  985. <td>
  986. ```python
  987. >>> import mindspore.nn as nn
  988. >>> from mindspore.common import initializer
  989. >>> from mindspore.common.initializer import XavierUniform
  990. >>>
  991. >>> weight_init_1 = XavierUniform(gain=1.1)
  992. >>> conv1 = nn.Conv2d(3, 6, weight_init=weight_init_1)
  993. >>> weight_init_2 = XavierUniform(gain=1.1)
  994. >>> conv2 = nn.Conv2d(6, 10, weight_init=weight_init_2)
  995. ```
  996. </td>
  997. <td>
  998. ```python
  999. >>> import mindspore.nn as nn
  1000. >>> from mindspore.common import initializer
  1001. >>> from mindspore.common.initializer import XavierUniform
  1002. >>>
  1003. >>> weight_init = XavierUniform(gain=1.1)
  1004. >>> conv1 = nn.Conv2d(3, 6, weight_init=weight_init)
  1005. >>> conv2 = nn.Conv2d(6, 10, weight_init=weight_init)
  1006. ```
  1007. </td>
  1008. </tr>
  1009. </table>
  1010. ###### Modify get_seed function ([!7429](https://gitee.com/mindspore/mindspore/pulls/7429/files))
  1011. Modify get_seed function implementation
  1012. Previously, if seed is not set, the value of seed is default, parameters initialized by the normal function are the same every time.
  1013. After modification, if seed is not set, the value of seed is generated randomly, the initialized parameters change according to the random seed.
  1014. If you want to fix the initial value of parameters, we suggest to set seed.
  1015. ```python
  1016. >>> from mindspore.common import set_seed
  1017. >>> set_seed(1)
  1018. ```
  1019. ###### `nn.LinSpace` ([!9494](https://gitee.com/mindspore/mindspore/pulls/9494)) has been removed and modify `ops.LinSpace` ([!8920](https://gitee.com/mindspore/mindspore/pulls/8920))
  1020. The `nn.LinSpace` interface only support passing the value by args previously. For the convenience, we provided enhancive `ops.LinSpace` interface, which support passing the value by the inputs at the latest version. So there is no need for `nn.LinSpace`.
  1021. <table>
  1022. <tr>
  1023. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1024. </tr>
  1025. <tr>
  1026. <td>
  1027. ```python
  1028. >>> from mindspore import nn
  1029. >>>
  1030. >>> start = 1
  1031. >>> stop = 10
  1032. >>> num = 5
  1033. >>> linspace = nn.LinSpace(start, stop, num)
  1034. >>> output = linspace()
  1035. ```
  1036. </td>
  1037. <td>
  1038. ```python
  1039. >>> import mindspore
  1040. >>> from mindspore import Tensor
  1041. >>> from mindspore import ops
  1042. >>>
  1043. >>> linspace = ops.LinSpace()
  1044. >>> start = Tensor(1, mindspore.float32)
  1045. >>> stop = Tensor(10, mindspore.float32)
  1046. >>> num = 5
  1047. >>> output = linspace(start, stop, num)
  1048. ```
  1049. </td>
  1050. </tr>
  1051. </table>
  1052. ###### Parts of `Optimizer` add target interface ([!6760](https://gitee.com/mindspore/mindspore/pulls/6760/files))
  1053. The usage of the sparse optimizer is changed.
  1054. The target interface is used to set the execution backend of the sparse operator.
  1055. The add_primitive_attr interface is no longer allowed.
  1056. The following optimizers add the target interface: Adam, FTRL, LazyAdam, ProximalAdagrad
  1057. <table>
  1058. <tr>
  1059. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1060. </tr>
  1061. <tr>
  1062. <td>
  1063. ```python
  1064. >>> from mindspore.nn import Adam
  1065. >>>
  1066. >>> net = LeNet5()
  1067. >>> optimizer = Adam(filter(lambda x: x.requires_grad, net.get_parameters()))
  1068. >>> optimizer.sparse_opt.add_prim_attr("primitive_target", "CPU")
  1069. ```
  1070. </td>
  1071. <td>
  1072. ```python
  1073. >>> from mindspore.nn import Adam
  1074. >>>
  1075. >>> net = LeNet5()
  1076. >>> optimizer = Adam(filter(lambda x: x.requires_grad, net.get_parameters()))
  1077. >>> optimizer.target = 'CPU'
  1078. ```
  1079. </td>
  1080. </tr>
  1081. </table>
  1082. ###### `export` Modify the input parameters and export's file name ([!7385](https://gitee.com/mindspore/mindspore/pulls/7385), [!9057](https://gitee.com/mindspore/mindspore/pulls/9057/files))
  1083. Export the MindSpore prediction model to a file in the specified format.
  1084. The reference includes: `net`, `*inputs`, `file_name`, `file_format`, `**kwargs`.
  1085. Input parameters can be input according to specific export requirements.
  1086. Add the file name extension based on the format.
  1087. <table>
  1088. <tr>
  1089. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1090. </tr>
  1091. <tr>
  1092. <td>
  1093. ```python
  1094. >>> from mindspore.train.quant import quant
  1095. >>>
  1096. >>> network = LeNetQuant()
  1097. >>> inputs = Tensor(np.ones([1, 1, 32, 32]), mindspore.float32)
  1098. >>> quant.export(network, inputs, file_name="lenet_quant.mindir", file_format='MINDIR')
  1099. lenet_quant.mindir
  1100. ```
  1101. </td>
  1102. <td>
  1103. ```python
  1104. >>> from mindspore import export
  1105. >>>
  1106. >>> network = LeNetQuant()
  1107. >>> inputs = Tensor(np.ones([1, 1, 32, 32]), mindspore.float32)
  1108. >>> export(network, inputs, file_name="lenet_quant", file_format='MINDIR', quant_mode='AUTO')
  1109. lenet_quant.mindir
  1110. ```
  1111. </td>
  1112. </tr>
  1113. </table>
  1114. ###### `Dense`, `Conv2dBnAct`, `DenseBnAct`, `DenseQuant` support setting the activation attribute as an instance of a class derived from `nn.Cell` or `Primtive` ([!7581](https://gitee.com/mindspore/mindspore/pulls/7581))
  1115. activation (Union[str, Cell, Primitive]): activate function applied to the output of the fully connected layer
  1116. <table>
  1117. <tr>
  1118. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1119. </tr>
  1120. <tr>
  1121. <td>
  1122. ```python
  1123. >>> import mindspore.nn as nn
  1124. >>>
  1125. >>> dense = nn.Dense(1, 1, activation='relu')
  1126. ```
  1127. </td>
  1128. <td>
  1129. ```python
  1130. >>> import mindspore.nn as nn
  1131. >>> import mindspore.ops as ops
  1132. >>>
  1133. >>> dense = nn.Dense(1, 1, activation=nn.ReLU())
  1134. >>> dense = nn.Dense(1, 1, activation=ops.ReLU())
  1135. ```
  1136. </td>
  1137. </tr>
  1138. </table>
  1139. ###### `tensor.dim()`, `tensor.size()` has been renamed to `tensor.ndim`, `tensor.size` ([!10175](https://gitee.com/mindspore/mindspore/pulls/10175))
  1140. Previously, tensor.size() and tensor.dim() were used for checking the total number of elements/dimensions in the tensor.
  1141. However, from a user's perspective, tensor.size and tensor.ndim (methods -> properties) are better choices, since they follow the numpy naming convention.
  1142. <table>
  1143. <tr>
  1144. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1145. </tr>
  1146. <tr>
  1147. <td>
  1148. ```python
  1149. >>> from mindspore import Tensor
  1150. >>>
  1151. >>> Tensor((1,2,3)).size()
  1152. >>> Tensor((1,2,3)).dim()
  1153. ```
  1154. </td>
  1155. <td>
  1156. ```python
  1157. >>> from mindspore import Tensor
  1158. >>>
  1159. >>> Tensor((1,2,3)).size
  1160. >>> Tensor((1,2,3)).ndim
  1161. ```
  1162. </td>
  1163. </tr>
  1164. </table>
  1165. ###### `EmbeddingLookup` add a config in the interface: sparse ([!8202](https://gitee.com/mindspore/mindspore/pulls/8202))
  1166. sparse (bool): Using sparse mode. When 'target' is set to 'CPU', 'sparse' has to be true. Default: True.
  1167. <table>
  1168. <tr>
  1169. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1170. </tr>
  1171. <tr>
  1172. <td>
  1173. ```python
  1174. >>> from mindspore.nn import EmbeddingLookup
  1175. >>>
  1176. >>> input_indices = Tensor(np.array([[1, 0], [3, 2]]), mindspore.int32)
  1177. >>> result = EmbeddingLookup(4,2)(input_indices)
  1178. >>> print(result.shape)
  1179. (2, 2, 2)
  1180. ```
  1181. </td>
  1182. <td>
  1183. ```python
  1184. >>> from mindspore.nn import EmbeddingLookup
  1185. >>>
  1186. >>> input_indices = Tensor(np.array([[1, 0], [3, 2]]), mindspore.int32)
  1187. >>> result = EmbeddingLookup(4,2)(input_indices, sparse=False)
  1188. >>> print(result.shape)
  1189. (2, 2, 2)
  1190. ```
  1191. </td>
  1192. </tr>
  1193. </table>
  1194. ###### `nn.probability.bijector` change types of attributes from (int, float) to (float, list, numpy.ndarray, Tensor) ([!8191](https://gitee.com/mindspore/mindspore/pulls/8191))
  1195. Attributes Type change: (int, float) -> (float, list, numpy.ndarray, Tensor).
  1196. Int type is not supported anymore. Parameters of all bijectors should be type float, list, numpy.ndarray or Tensor.
  1197. <table>
  1198. <tr>
  1199. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1200. </tr>
  1201. <tr>
  1202. <td>
  1203. ```python
  1204. >>> import mindspore.nn.probability.bijector as msb
  1205. >>>
  1206. >>> power = 2
  1207. >>> bijector = msb.PowerTransform(power=power)
  1208. ```
  1209. </td>
  1210. <td>
  1211. ```python
  1212. >>> import mindspore.nn.probability.bijector as msb
  1213. >>>
  1214. >>> power = 2.0
  1215. >>> bijector = msb.PowerTransform(power=power)
  1216. ```
  1217. </td>
  1218. </tr>
  1219. </table>
  1220. ###### `nn.probability.bijector.GumbelCDF` remove a attribute in the interface: dtype ([!8191](https://gitee.com/mindspore/mindspore/pulls/8191))
  1221. dtype is removed from GumbelCDF and is no longer an argument of the class.
  1222. <table>
  1223. <tr>
  1224. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1225. </tr>
  1226. <tr>
  1227. <td>
  1228. ```python
  1229. >>> import mindspore.nn.probability.bijector as msb
  1230. >>> from mindspore import dtype as mstype
  1231. >>>
  1232. >>> bijector = msb.GumbelCDF(loc=0.0, scale=1.0, dtype=mstype.float32)
  1233. ```
  1234. </td>
  1235. <td>
  1236. ```python
  1237. >>> import mindspore.nn.probability.bijector as msb
  1238. >>>
  1239. >>> bijector = msb.GumbelCDF(loc=0.0, scale=1.0)
  1240. ```
  1241. </td>
  1242. </tr>
  1243. </table>
  1244. ###### `nn.layer.combined.Conv2dBnAct`, `nn.layer.combined.DenseBnAct` move from nn.layer.quant to nn.layer.combined ([!8187](https://gitee.com/mindspore/mindspore/pulls/8187))
  1245. Previously Conv2dBnAct and DenseBnAct are in nn.layer.quant, since they are not quant cells, now they are moved to nn.layer.combined. If you import Conv2dBnAct, DenseBnAct from mindspore.nn, then your code doesn't need any change.
  1246. <table>
  1247. <tr>
  1248. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  1249. </tr>
  1250. <tr>
  1251. <td>
  1252. ```python
  1253. >>> from mindspore.nn.layer.quant import Conv2dBnAct, DenseBnAct
  1254. ```
  1255. </td>
  1256. <td>
  1257. ```python
  1258. >>> from mindspore.nn import Conv2dBnAct, DenseBnAct
  1259. ```
  1260. </td>
  1261. </tr>
  1262. </table>
  1263. ###### `nn.layer.conv.Conv2D`, `nn.layer.quant.Conv2dBnFoldQuant`, `nn.layer.quant.Conv2dBnWithoutFoldQuant` change weight shape when group > 1 in Ascend platform ([!9723](https://gitee.com/mindspore/mindspore/pulls/9723))
  1264. In Ascend platform, if group > 1, the weight shape of Conv2D change from [in_channels//group, out_channels, kernel_size, kernel_size] to [out_channels, in_channels//group, kernel_size, kernel_size]. Previously, checkpoints of the networks are used, which use Conv2D with group > 1, such as MobileNet, can not be directly used now, need to transpose the first and second axis of the weight.
  1265. ### Bug fixes
  1266. #### FrontEnd
  1267. - [STABLE] Fix the problem of the cse optimization in the situation of control flow. (Ascend/GPU)
  1268. #### Auto Parallel
  1269. - [STABLE] Resolve the restriction: input and output layouts of Reshape are restricted in tensor redistribution. (Ascend/GPU)
  1270. - [STABLE] Resolve the restriction: output strategy should be data parallel in model evaluation. (Ascend/GPU)
  1271. #### Executor
  1272. - [STABLE] Fix fusion operator compilation cache. (Ascend)
  1273. - [STABLE] Fix compilation error of dynamic shape operator. (Ascend)
  1274. - [STABLE] Fix bug of pynative cannot insert transdata of node output when node should be spilted in the backend opt.(Ascend)
  1275. - [STABLE] Fix the bug of TensorMove and memcpy_async merge to one after backend cse pass (Ascend)
  1276. #### DataSet
  1277. - [STABLE] Fix cache server hang on RequestFreeTag. (Ascend/GPU/CPU)
  1278. - [STABLE] Fix hung when use pyfunc multi-processing. (Ascend/GPU/CPU)
  1279. - [STABLE] Fix add multiple parent nodes to tree node cause core dump. (Ascend/GPU/CPU)
  1280. ## MindSpore Lite
  1281. ### Major Features and Improvements
  1282. #### Converter and runtime
  1283. 1. Support dynamic shape in MindSpore Lite Converter.
  1284. 2. Optimize sub-graph mechanism by dynamically splitting the entire graph into multiple subgraphs based on the operator supported, backend hardware and user configuration.
  1285. 3. Support TensorList and TensorList operators such as TensorListFromTensor, TensorListGetItem and so on.
  1286. 4. Support BatchMatMul fusion and LSTM fusion in MindSpore Lite Converter.
  1287. 5. Support converting model and run inference on Windows operator system.
  1288. 6. Support Model(.ms) visualization on Netron.
  1289. 7. Support Tensorflow model in MindSpore Lite Converter
  1290. 8. Add 86 converter parsers.
  1291. 9. Convert aware training model without user’s awareness
  1292. 10. Support scalar tensor in MindSpore Lite Converter and Runtime
  1293. 11. Support NPU backend on HUAWEI Kirin SoC.[BETA]
  1294. 12. Merge timeprofiler into benchmark
  1295. #### CPU backend optimization
  1296. 1. Add 50+ new operators, including new Op type(like Adder, Gru).
  1297. 2. Enhanced performance on armv8.2 supported platform. For example, utilizing sdot instruction more efficiently.
  1298. 3. Optimize all operators(fp32, fp16, int8) by implementing multi-thread, SIMD tech as much as possible. Model inference time can reduce at least 20% after these optimizations.
  1299. 4. Extending to support operators for x86_64 platform based on SSE/AVX instruction set.
  1300. #### OpenCL backend
  1301. 1. Add new ops: add 10+ ops, total 58 ops;
  1302. 2. Performance optimization: by memory layout optimize, Winograd Convolution select strategyoptimize, SIMT local size optimize, local cache optimize, GPU performance improvement up to 20+% vs MSLITE Version1.0
  1303. 3. Add Online Graph optimzation: by fusion Convolution/Matmul/Fullconnection and add/mul/pad/reshape, improve performance up to 50+% for some networks;
  1304. 4. Add auto tuning: by online tuning in the graph compilation phase, optimize performance up to 10%;
  1305. 5. Add weight quant: support weight quant
  1306. 6. Add opencl kernel binary cache: improve Initialization time .
  1307. #### Post quantization
  1308. MindSpore Lite supports both weight quantization and full quantization. Currently, Weights can be quantized into 1 ~ 16 bits according to user configuration. In internal testing, quantization of networks, such as classification, detection, segmentation and transformer are well supported. To ensure high accuracy of quantized models, MindSpore Lite uses a pipeline quantization method. In the first phase, the weight and activation value are quantized using linear quantization methods, such as MIN-MAX. In the second phase, the quantization error is analyzed, and uses statistical methods to compensate loss caused by fp32 quantization to a fixed point such as Int8 to quantized models. The features of Post-training quantization are:
  1309. 1. perchannel asymmetric quantization for weights, such as MAX_MIN and KMEANS
  1310. 2. Perlayer symmetric quantization for activation, such as KL and MAX_MIN.
  1311. 3. perlayer asymmetrical quantization for activation, such as, RemoveOutlier.
  1312. 4. accuracy loss compensation, such as BiasCorrection
  1313. | mobilenet_v2 | ACC (ImageNet) |
  1314. |---|---|
  1315. | FP32 | 71.56% |
  1316. |A8W8 | 71.16% |
  1317. | A8W8(without BiasCorrection) | 70.74% |
  1318. | A8W7 | 71.06% |
  1319. | A7W7 | 70.78% |
  1320. The above table uses the mobilenet_v2 model from TF official website. Using MindSpore Lite quantization, the precision of A8W8 (8-bit activation value quantization and 8-bit weight quantization) decreases from 0.82% to 0.4% after accuracy loss compensation, for 7-bit quantization, the precision loss is still no more than 1%.
  1321. #### Training on Device
  1322. Within MindSpore 1.1 release, the MindSpore Lite provides the following Training-on-Device (ToD) capabilities:
  1323. 1. Learning from scratch and Transfer Learning strategies are supported
  1324. 2. MindSpore based models can be converted and used in training on the device. (Third-party models such as TensorFlow and PyTorch for now cannot be directly imported to the framework)
  1325. 3. Grad operations are supported for more than 30 operators such as Dense layers, Convolutions and Batch Normalizations. Momentum, SGD, and ADAM optimizers are supported.
  1326. 4. Supports networks such as LeNet, Alexnet, Resnet, MobileNetV1/V2/V3, and EffectiveNet, and provides complete model loading, conversion, and Python training scripts on the device side.
  1327. The MindSpore Lite ToD framework is already in use in the newest Huawei Smart TV, providing a unique and personalized user experience as a family entertainment center.
  1328. ### API Change
  1329. #### API Incompatible Change
  1330. ##### C++ API
  1331. - [Modify] Context now support multi-context configuration.(Context.h)
  1332. - [Modify] Callback is move from lite_session.h into ms_tensor.h.
  1333. - [Modify] GetInputsByName in lite_session.h is changed into GetInputsByTensorName
  1334. - [Add] add static LiteSession *CreateSession(const char*model_buf, size_t size, const lite::Context *context) in lite_session.h
  1335. - [Add] add GetErrorInfo interface returning error message in errorcode.h
  1336. - [Delete] Remove model_generated.h, ops_generated.h and headers of FlatBuffers library from interfaces
  1337. ##### Java API
  1338. - [Add] Implement JNI layer and add Java api for CPU and GPU backend
  1339. #### Deprecations
  1340. ##### C++ API
  1341. Deprecate Interface GetOutputsByNodeName
  1342. ### Bug fixes
  1343. - [BUGFIX] Fix the bug in sub-graph segmentation
  1344. - [BUGFIX] Fix the bug in Tensor getitem in which the ellipsis matches the wrong dim-size.
  1345. - [BUGFIX] Fix the bug that activation modification after defining Dense will not take effect.
  1346. ## Contributors
  1347. Thanks goes to these wonderful people:
  1348. zhouyifengCode, huqi, JulyAi, damon0626, chenbo116, rmdyh, davidmc, gray0v0, doitH, Gogery, zymaa, xinyunfan
  1349. Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, eric, Eric, fary86, fuzhiye, Gaoxiong, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Jesse, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, zymaa
  1350. Contributions of any kind are welcome!
  1351. # MindSpore 1.0.0 Release Notes
  1352. ## Major Features and Improvements
  1353. ### MindSpore Training and Inference Framework
  1354. #### Ascend 910
  1355. - New models
  1356. - DenseNet121: a dense convolutional neural network, which connects each layer to every other layer in a feed-forward fashion for object recognition on ImageNet dataset.
  1357. - UNet2D-Medical: Unet Medical model for 2D image segmentation, Convolutional Networks for Biomedical Image Segmentation on ISBI Challenge database.
  1358. - Frontend and user interface
  1359. - Second-Order Optimization
  1360. - Enable second-order optimization for Bert on Ascend 910, which can achieve a masked lm accuracy of 71.3% in 800 seconds using 8 Ascend 910 (Bert-Large @MLPerf v0.7 dataset).
  1361. - New GNN model BGCF
  1362. - Bayesian Graph Convolutional Filtering network which naturally incorporate the uncertainty in the user-item interaction graph shows excellent recommendation performance on Amazon-Beauty dataset.
  1363. - Add append interface for SequentialCell.
  1364. - Add a level `auto` for AMP.
  1365. - Executor and performance optimization
  1366. - Support quantitative network (Resnet50 & YoloV3 & MobileNetV2).
  1367. - Project ease of use optimization: project compilation time optimization, CMakelist regularization, cudnn, cuda independent compilation and installation independent.
  1368. - Data processing, augmentation, and save format
  1369. - Support GeneratorDataset return string type
  1370. #### Other Hardware Support
  1371. - GPU platform
  1372. - Enable second-order optimization for resnet50 on GPU, which achieve 30% improvement on training time compared to SGD with Momentum (Resnet50 @ImageNet).
  1373. #### User interfaces change log
  1374. - Remove global object GradOperation in Autodiff([!5011](https://gitee.com/mindspore/mindspore/pulls/5011))
  1375. - Remove useless attribute 'name' in Autodiff([!5172](https://gitee.com/mindspore/mindspore/pulls/5172))
  1376. - Rectification distributed init([!5350](https://gitee.com/mindspore/mindspore/pulls/5350))
  1377. - Move the setting of ParalleMode from train.parallel_utils to context([!5351](https://gitee.com/mindspore/mindspore/pulls/5351))
  1378. - Modification of save_checkpoint([!5482](https://gitee.com/mindspore/mindspore/pulls/5482))
  1379. - Wrap numpy random seed into an api([!5634](https://gitee.com/mindspore/mindspore/pulls/5634))
  1380. - Delete enable_fused_layernorm in some modelzoo scripts([!5665](https://gitee.com/mindspore/mindspore/pulls/5665))
  1381. - Move 'multi-subgraphs' interface to internal([!5696](https://gitee.com/mindspore/mindspore/pulls/5696))
  1382. - Rename mirror_mean to gradient_mean([!5700](https://gitee.com/mindspore/mindspore/pulls/5700))
  1383. - Remove default value of 'group' of DepthWiseConv2d([!5865](https://gitee.com/mindspore/mindspore/pulls/5865))
  1384. - Modify interface for function and remove duplicated def([!5958](https://gitee.com/mindspore/mindspore/pulls/5958))
  1385. - Unify Conv2d and DepthwiseConv2d([!5916](https://gitee.com/mindspore/mindspore/pulls/5916))
  1386. - Modification of SoftmaxCrossEntropyWithLogits([!5502](https://gitee.com/mindspore/mindspore/pulls/5502))
  1387. - Change API set_strategy() to shard()([!5991](https://gitee.com/mindspore/mindspore/pulls/5991))
  1388. - Move batch_size from bert_cfg_cfg to cfg([!6233](https://gitee.com/mindspore/mindspore/pulls/6233))
  1389. - Remove unused parameters from SummaryRecord __init__([!5548](https://gitee.com/mindspore/mindspore/pulls/5548))
  1390. - remove sens parameter of TrainOneStepWithLossScaleCell([!5753](https://gitee.com/mindspore/mindspore/pulls/5753))
  1391. - optimize the TrainOneStepCell for user's define([!6159](https://gitee.com/mindspore/mindspore/pulls/6159))
  1392. - delete seed0 and seed1 of nn.Dropout([!5735](https://gitee.com/mindspore/mindspore/pulls/5735))
  1393. - delete DataWrapper([!6101](https://gitee.com/mindspore/mindspore/pulls/6101))
  1394. - LSTM API optimization([!6374](https://gitee.com/mindspore/mindspore/pulls/6374))
  1395. - Merge P\C\F of ops([!5645](https://gitee.com/mindspore/mindspore/pulls/5645))
  1396. - delete SoftmaxCrossEntropyExpand interface([!6607](https://gitee.com/mindspore/mindspore/pulls/6607))
  1397. - Adjust GroupNorm interface([!6329](https://gitee.com/mindspore/mindspore/pulls/6329))
  1398. - Modify init interface to internal interface([!6651](https://gitee.com/mindspore/mindspore/pulls/6651))
  1399. - Log optimization([!5842](https://gitee.com/mindspore/mindspore/pulls/5842))
  1400. - Remove useless API dataset.set_dataset_size([!5806](https://gitee.com/mindspore/mindspore/pulls/5806))
  1401. - Some of Dataset API add usage parameter([!5605](https://gitee.com/mindspore/mindspore/pulls/5605))
  1402. - Change the import path, such as from mindspore.dataset.transforms.vision to mindspore.dataset.vision.transforms([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  1403. - Rename ImageFolderDatasetV2 to ImageFolderDataset([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  1404. - Dataset.map parameter optimization([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  1405. - Add new api dataset.get_col_names([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  1406. - Add new api dataset.get_col_names([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  1407. - Remove useless API MindRecord finish([!5580](https://gitee.com/mindspore/mindspore/pulls/5580))
  1408. ### MindSpore Lite
  1409. - Converter
  1410. - Add 6 TFLite op, 7 Caffe op, 1 ONNX op.
  1411. - Add support for Windows.
  1412. - Support parallel inference of multiple sessions to adapt to more scenarios
  1413. - Support 8bits only weight-quantization, most main-stream models has small accuracy loss (less than 0.5%) when compared to non-qunantized fp32 model.
  1414. - CPU & GPU
  1415. - Add 20 CPU ops,include FP32, int8/uint8, FP16 and int32 ops.
  1416. - Add supporting FP16 for GPU, add 14 GPU ops include FP32/FP16.
  1417. - Add Buffer/Image2D transform op for GPU
  1418. - Performance optimization for CPU ops focus on ARM32.
  1419. - Performance optimization for GPU Convolution using winograd.
  1420. - Tool & example
  1421. - Add object detection Android Demo.
  1422. ## Bugfixes
  1423. - Models
  1424. - fix the constant folding problem in multiply.([!6092](https://gitee.com/mindspore/mindspore/pulls/6092))
  1425. - move batch_size from bert_net_cfg to cfg in bert scripts.([!6233](https://gitee.com/mindspore/mindspore/pulls/6233))
  1426. - modify the checkpoint file path.([!6137](https://gitee.com/mindspore/mindspore/pulls/6137))
  1427. - Python API
  1428. - fix semi auto parallel parameter of reshape has another user([!5722](https://gitee.com/mindspore/mindspore/pulls/5722))
  1429. - raise ValueError when call hook function in graph mode([!5831](https://gitee.com/mindspore/mindspore/pulls/5831))
  1430. - Executor
  1431. - fix pynative mode to build temporary nn objects.([!6189](https://gitee.com/mindspore/mindspore/pulls/6189))
  1432. - fix the accuracy problem of multiple inputs of multi-card communication operator broadcast.([!6522](https://gitee.com/mindspore/mindspore/pulls/5622))
  1433. - fix the problem that the sample distribution interface categorical does not support graph mode.([!5772](https://gitee.com/mindspore/mindspore/pulls/5772))
  1434. - fix the random seed failure problem of the polynomial downsampling distribution operator.([!5948](https://gitee.com/mindspore/mindspore/pulls/5948))
  1435. - fix unnecessary address binding issues in GPU heterogeneous scenarios.([!6232](https://gitee.com/mindspore/mindspore/pulls/6232))
  1436. - GPU platform
  1437. - fix for kernel resource leak([!5315](https://gitee.com/mindspore/mindspore/pulls/5315))
  1438. - fix for insufficient memory for continuous unit test running([!5617](https://gitee.com/mindspore/mindspore/pulls/5617))
  1439. - fix for the memory leak in the sparse slicer([!5578](https://gitee.com/mindspore/mindspore/pulls/5578))
  1440. - Data processing
  1441. - fix hang when use pyfunc([!6346](https://gitee.com/mindspore/mindspore/pulls/6346))
  1442. - fix GPU device queue does not release GIL during resource clean up([!5964](https://gitee.com/mindspore/mindspore/pulls/5964))
  1443. - fix hang if scripte exit unnormally([!6441](https://gitee.com/mindspore/mindspore/pulls/6441))
  1444. - Third party
  1445. - Sqlite : Update sqlite to 3.32.2 to handle [CVE-2020-11656](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656), [CVE-2020-13871](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871), [CVE-2020-11655](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655), [CVE-2020-9327](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327), [CVE-2020-13630](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630), [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358), [CVE-2020-13631](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631), [CVE-2020-13632](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13632), [CVE-2020-13434](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434), [CVE-2020-13435](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435), and [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655).
  1446. - Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle [CVE-2020-13790](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13790).
  1447. ## Contributors
  1448. Thanks goes to these wonderful people:
  1449. Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, danish, Danish, dayschan, eric, Eric, fary86, fuzhiye, Gaoxiong, gengdongjie, gongdaguo, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huzhifeng, hwjiaorui, Jesse, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, r1chardf1d0, riemann_penn, root, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, Xiaoda, xiefangqi, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhoufeng, zhousiyi, zhouyaqiang, Zichun, Zirui, Ziyan, zjun, ZPaC
  1450. Contributions of any kind are welcome!
  1451. # MindSpore 0.7.0-beta Release Notes
  1452. ## Major Features and Improvements
  1453. ### MindSpore Training and Inference Framework
  1454. #### Ascend 910
  1455. - New models
  1456. - TinyBert: a smaller and faster version of BERT using transformer distillation for natural language understanding on GLUE benchmark.
  1457. - SE-ResNet50: add Squeeze-and-Excitation blocks(SE-Blocks) to the resnet50 network to improve channel interdependencies for image classification on ImageNet 2012 dataset.
  1458. - Inception V3: the third version of Inception convolutional architectures for image classification on ImageNet 2012 dataset.
  1459. - Frontend and user interface
  1460. - Embedding operator high-level packaging to support segmented by field for Wide&Deep.
  1461. - Load multi-node checkpoint into single-process to support host-device hybrid inference.
  1462. - Support Concat/Tile/Strideslice distributed operators.
  1463. - Support cumulative gradient and batch training split.
  1464. - Support variable parameter input for Cell object.
  1465. - Parameter mixed calculation optimization for pynative mode.
  1466. - Deep Probabilistic Programming
  1467. - Support statistical distributions classes used to generate stochastic tensors.
  1468. - Support probabilistic inference algorithms.
  1469. - Support BNN layers used to construct BNN in Graph mode.
  1470. - Support interfaces for the transformation between BNN and DNN in Graph mode.
  1471. - Support uncertainty estimation to estimate epistemic uncertainty and aleatoric uncertainty.
  1472. - User interfaces change log
  1473. - change base class of parameter([!3473](https://gitee.com/mindspore/mindspore/pulls/3473))
  1474. - change binary to mindir([!4258](https://gitee.com/mindspore/mindspore/pulls/4258))
  1475. - change export from geir to air([!4269](https://gitee.com/mindspore/mindspore/pulls/4269))
  1476. - Init parameter data by default([!3967](https://gitee.com/mindspore/mindspore/pulls/3967))
  1477. - change IndexedSlices to RowTensor([!4031](https://gitee.com/mindspore/mindspore/pulls/4031))
  1478. - Must set or change parallel mode before any Initializer created([!4801](https://gitee.com/mindspore/mindspore/pulls/4801))
  1479. - Executor and performance optimization
  1480. - MindSpore graph compilation process performance improved by 20%.
  1481. - Decoupling C++ and Python modules to achieve separate compilation of core modules.
  1482. - Data processing, augmentation, and save format
  1483. - Support automatic data augmentation
  1484. - Support GNN distributed cache in single node
  1485. - Support ConcatDataset using distributed sampler
  1486. #### Other Hardware Support
  1487. - GPU platform
  1488. - New model supported: VGG16, ResNet101, DeepFM.
  1489. - Support some distributed operators in ResNet50 and Wide&Deep.
  1490. - Support automatic parallel for Wide&Deep.
  1491. - Support function funcs[i](*inputs) (such as switch-case).
  1492. - Support distributed training with parameter server.
  1493. - Support GPU operator profiling.
  1494. - Performance optimization of the distributed training with allreduce.
  1495. - Performance optimization of the mixed precision training.
  1496. - Performance optimization of the pynative mode.
  1497. - Performance optimization of the convolution operator, batch normalization operator.
  1498. - CPU platform
  1499. - Support MobileNetV2 Re-Training: Re-train the network with different class number.
  1500. ### MindSpore Lite
  1501. - Converter
  1502. - Support third-party models, including TFLite/Caffe/ONNX.
  1503. - Add 93 TFLite op.
  1504. - Add 24 Caffe op.
  1505. - Add 62 ONNX op.
  1506. - Add 11 optimized passes, include fusion/const fold.
  1507. - Support aware-training and Post-training quantization.
  1508. - CPU
  1509. - Add 100+ops,support fp32, int8/uint8, FP16 ops
  1510. - Support fast convolution algorithms: Sliding Window, Img2col + Gemm, Strassen, Winograd
  1511. - Support assembly/neon instruction.
  1512. - Support CPU fp16 and sdot on ARM v8.2+.
  1513. - GPU
  1514. - Add 20+ ops for OpenCL.
  1515. - Support image2D/buffer format.
  1516. - Optimize online initialization time.
  1517. - add optimized convolution1X1/3X3/depthwise/convolution_transposed for OpenCL.
  1518. - Tool & example
  1519. - Add benchmark and TimeProfile tools.
  1520. - Add image classification Android Demo.
  1521. ## Bugfixes
  1522. - Models
  1523. - normalize the readme file([!5410](https://gitee.com/mindspore/mindspore/pulls/5410))
  1524. - fix a sink_size bug for transformer([!5393](https://gitee.com/mindspore/mindspore/pulls/5393))
  1525. - fix bool type optional for resnet50([!5363](https://gitee.com/mindspore/mindspore/pulls/5363))
  1526. - Python API
  1527. - improve interface '__bool__' for tensor([!4000](https://gitee.com/mindspore/mindspore/pulls/4000))
  1528. - fix GPU-ResizeNearestNeighbor([!3760](https://gitee.com/mindspore/mindspore/pulls/3760))
  1529. - fix topK multi dimension grad func([!3711](https://gitee.com/mindspore/mindspore/pulls/3711))
  1530. - fix scatterop error msg([!3699](https://gitee.com/mindspore/mindspore/pulls/3699))
  1531. - fix bug of cast dtype when using mix_presion in pynative mode([!3730](https://gitee.com/mindspore/mindspore/pulls/3730))
  1532. - Executor
  1533. - fix etsnet train error when UnsegmentSum's first input shape is (1,) ([!4573](https://gitee.com/mindspore/mindspore/pulls/4573))
  1534. - fix bug of result error in while control flow because of unsupporting for value reference ([!4103](https://gitee.com/mindspore/mindspore/pulls/4103))
  1535. - fix bug of the output tensor does not carry device data type ([!3774](https://gitee.com/mindspore/mindspore/pulls/3774))
  1536. - fix bug of avoiding multi attr value are eliminated in pynative mode ([!4225](https://gitee.com/mindspore/mindspore/pulls/4225))
  1537. - fix bug of AssignAdd unable to work normally in multi-cases ([!5171](https://gitee.com/mindspore/mindspore/pulls/5171))
  1538. - GPU platform
  1539. - improve the environment variable checking for nvcc compiler path ([!5140](https://gitee.com/mindspore/mindspore/pulls/5140))
  1540. - fix bug of error in cast operator conversion from fp16 to fp32 ([!4147](https://gitee.com/mindspore/mindspore/pulls/4147))
  1541. - fix bug of the array out of bound in case of make_tuple operator ([!5219](https://gitee.com/mindspore/mindspore/pulls/5219))
  1542. - Data processing and Pro
  1543. - fix GeneratorDataset time out([!3624](https://gitee.com/mindspore/mindspore/pulls/3624))
  1544. - fix concat operator get_dataset_size error([!4701](https://gitee.com/mindspore/mindspore/pulls/4701))
  1545. - fixing python validator for Repeat Op([!4366](https://gitee.com/mindspore/mindspore/pulls/4366))
  1546. - Third party
  1547. - Sqlite : Update sqlite to 3.32.2 to handle [CVE-2020-11656](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656), [CVE-2020-13871](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871), [CVE-2020-11655](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655), [CVE-2020-9327](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327), [CVE-2020-13630](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630), [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358), [CVE-2020-13631](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631), [CVE-2020-13632](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13632), [CVE-2020-13434](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434), [CVE-2020-13435](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435), and [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655).
  1548. - Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle [CVE-2020-13790](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13790).
  1549. ## Contributors
  1550. Thanks goes to these wonderful people:
  1551. Adel, Alexey, andy, andy_wangrui, anthonyaje, anzhengqi, askmiao, avakh, baihuawei, bingyaweng, BowenK, buxue, caifubi, CaoJian, caozhou, Cathy, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chenzupeng, chujinjin, cjh9368, Corleone, cristoval, danish, dengyutao, eric, Eric, ervinzhang, etone-chan, fangzehua, fary86, fuzhiye, gengdongjie, genglishuai, Giancarlo, gongdaguo, gukecai, guohongzilong, GuoMengHao, hangq, hanhaocheng, hanhuifeng2020, hanjun996, Harshvardhan, He, heleiwang, hesham, hexia, Hoai, hongxing, huangdongrun, huanghui, huangxinjing, islam_amin, Jesse, jianghui58, jiangzhiwen, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, kai00, kingfo, kpy, kswang, laiyongqiang, leilei_snow, leopz, Li, liangzelang, lianliguang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, lingyunli63, linqingke, lirongzhen1, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuzhongkai, Lixia, lixian, liyong, lizhenyu, looop5, luoyang, lvchangquan, lvliang, lvwenyuan, lyvette, mahdi, Mahdi, mamba_ni, maning202007, Margaret_wangrui, mayang, meixiaowei, meng_chunyang, ms_yan, nhussain, panbingao, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, pengyongrong, Pengyongrong, qianlong, qujianwei, root, shenwei41, shibeiji, simson, songhonglei413, Su, sunsuodong, suteng, tao_yunhao, TFbunny, tinazhang, tom__chen, tony_liu2, tronzhang, VectorSL, wandongdong, wangdongxu, wanghua, wangmin, wangshaocong, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuweikang, wuxuejian, wuyongkang, xiefangqi, xuanyue, Xun, xutianchun, xuyongfei, yanghaitao, yangjie159, YangLuo, yangruoqi713, yangyongjie, yangzhenzhang, yankai, yao_yf, yelihua, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zhangxuetong, zhaizhiqiang, Zhang, zhangxinfeng3, zhangxuetong, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaoting, zhaozhenlong, zhengjun10, zhongligeng, zhoufeng, zhousiyi, zhouyaqiang, zhouyuanshen, Zichun, Zirui, zjun, zongha, ZPaC, lijiaqi, liangchenghui, wangminggui
  1552. Contributions of any kind are welcome!
  1553. # MindSpore 0.6.0-beta Release Notes
  1554. ## Major Features and Improvements
  1555. ### Ascend 910 Training and Inference Framework
  1556. - New models
  1557. - There are official, research and community under modelzoo.
  1558. - Official is maintained with the newest APIs by MindSpore team, MaskRCNN are added.
  1559. - Research is uploaded by researchers for official review, and APIs may not be updated in time.
  1560. - Community reprints the relevant links of partner research results.
  1561. - Hub added on the same level as modelzoo, synchronous storage of materials needed for official hub web pages which will be launched soon.
  1562. - Support pre-trained models, few lines of code can be used to download and load pre-trained models, supporting inference or transfer learning.
  1563. - Frontend and user interface
  1564. - Supports user side operator compilation and graph execution error rendering.
  1565. - Uniform definition dynamic learning rate behavior in optimizers.
  1566. - Support IndexSlice in sparse expression.
  1567. - Support use parent construct method during construct.
  1568. - Support asynchronous execution save checkpoint file.
  1569. - Support implicit type conversion in pynative mode.
  1570. - User interfaces change log
  1571. - unform learning rate behavior in optimizers([!2755](https://gitee.com/mindspore/mindspore/pulls/2755))
  1572. - rename operator of sparse optimizer([!3217](https://gitee.com/mindspore/mindspore/pulls/3217))
  1573. - move profiler module from mindinsight to mindspore([!3075](https://gitee.com/mindspore/mindspore/pulls/3075))
  1574. - VOCDataset output change to multi-columns([!3093](https://gitee.com/mindspore/mindspore/pulls/3093))
  1575. - GetDatasize feature([!3212](https://gitee.com/mindspore/mindspore/pulls/3212))
  1576. - dataset: modify config api([!2936](https://gitee.com/mindspore/mindspore/pulls/2936))
  1577. - Executor and performance optimization
  1578. - Decouple C++ and python, so make the architecture more extensible.
  1579. - Parameter Server for distributed deep learning supported.
  1580. - Serving:a flexible service deployment framework for deep learning models.
  1581. - Memory reuse is enhanced, and the batch size of Bert large model is increased from 96 to 160 on a single server.
  1582. - Data processing, augmentation, and save format
  1583. - Support MindRecord save operator after date processing
  1584. - Support automatic fusion operator, such as decode/resize/crop
  1585. - Support CSV dataset loading
  1586. ### Other Hardware Support
  1587. - GPU platform
  1588. - New model supported: ResNext50, WarpCTC and GoogLeNet.
  1589. - Support hyperparametric search and data enhanced automl on GPU.
  1590. - Support Resnet50 automatic parallel in GPU backend.
  1591. ## Bugfixes
  1592. - Models
  1593. - Improved the performance and accuracy on ResNet50([!3456](https://gitee.com/mindspore/mindspore/pulls/3456))
  1594. - Fixed the performance test case of bert([!3486](https://gitee.com/mindspore/mindspore/pulls/3486))
  1595. - Python API
  1596. - Fix assign used in while loop([!2720](https://gitee.com/mindspore/mindspore/pulls/2720))
  1597. - Revert optimize the graph output of all nop node.([!2857](https://gitee.com/mindspore/mindspore/pulls/2857))
  1598. - Print tensor as numpy.([!2859](https://gitee.com/mindspore/mindspore/pulls/2859))
  1599. - Support weight decay for sparse optimizer([!2668](https://gitee.com/mindspore/mindspore/pulls/2668))
  1600. - Fix BatchToSpaceND([!2741](https://gitee.com/mindspore/mindspore/pulls/2741))
  1601. - Fixing type check mistakes of InplaceAdd and Inplace Sub ops([!2744](https://gitee.com/mindspore/mindspore/pulls/2744]))
  1602. - Change order param only equal to group param([!2748](https://gitee.com/mindspore/mindspore/pulls/2748))
  1603. - Executor
  1604. - The performance of graph with control flow is optimized([!2931](https://gitee.com/mindspore/mindspore/pulls/2931))
  1605. - Fix bug of wrong number of tuple layers([!3390](https://gitee.com/mindspore/mindspore/pulls/3390))
  1606. - Fix cpu multi graph memory exception([!3631](https://gitee.com/mindspore/mindspore/pulls/3631))
  1607. - Enable data sync when calling operator without defining a cell([!3081](https://gitee.com/mindspore/mindspore/pulls/3081))
  1608. - Fix argmaxwith value error in pynative mode on GPU([!3082](https://gitee.com/mindspore/mindspore/pulls/3082))
  1609. - Fix precision error with fp16 input on pynative mode([!3196](https://gitee.com/mindspore/mindspore/pulls/3196))
  1610. - Data processing
  1611. - Fix bug of RandomColor and RandomSharpness default parameter checking ([!2833](https://gitee.com/mindspore/mindspore/pulls/2833))
  1612. - Fix process hung when training and eval ([!3469](https://gitee.com/mindspore/mindspore/pulls/3469))
  1613. - Third party
  1614. - Sqlite : Update sqlite to 3.32.2 to handle [CVE-2020-11656](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656), [CVE-2020-13871](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871), [CVE-2020-11655](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655), [CVE-2020-9327](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327), [CVE-2020-13630](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630), [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358), [CVE-2020-13631](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631), [CVE-2020-13632](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13632), [CVE-2020-13434](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434), [CVE-2020-13435](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435), and [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655).
  1615. - Libjpeg-turbo : Update libjpeg-turbo to 2.0.4 to handle [CVE-2020-13790](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13790).
  1616. ## Contributors
  1617. Thanks goes to these wonderful people:
  1618. Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
  1619. Contributions of any kind are welcome!
  1620. # MindSpore 0.5.2-beta Release Notes
  1621. ## Major Features and Improvements
  1622. ### Ascend 910 Training and Inference Framework
  1623. - New models
  1624. - DenseNet121: a convolution based neural network for the task of image classification on ImageNet 2012 dataset.
  1625. ## Bugfixes
  1626. - Models
  1627. - VGG16,Alexnet,GoogleNet,optimize network for better performance. ([!5539](https://gitee.com/mindspore/mindspore/pulls/5539))
  1628. - YOLOV3, fix yolov3_darknet53 dataset bug. ([!5658](https://gitee.com/mindspore/mindspore/pulls/5658))
  1629. ## Contributors
  1630. Thanks goes to these wonderful people:
  1631. Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
  1632. Contributions of any kind are welcome!
  1633. # MindSpore 0.5.0-beta Release Notes
  1634. ## Major Features and Improvements
  1635. ### Ascend 910 Training and Inference Framework
  1636. - New models
  1637. - ResNext50: a simple, highly modularized network architecture using aggregated resdiual transformations for image classification on ImageNet 2012 dataset.
  1638. - MASS: a pre-training method for sequence to sequence based language generation tasks on Text Summarization and Conversational Response Generation using News Crawls 2007-2017 dataset, Gigaword corpus and Cornell movie dialog corpus.
  1639. - Transformer: a neural network architecture for language understanding on WMT 2014 English-German dataset.
  1640. - GCN:Graph Convolutional Networks for the task of classification of nodes in a graph on Cora and Citeseer datasets.
  1641. - GAT:an attention-based graph neural network for node classification on Cora and CiteSeer dataset.
  1642. - Frontend and user interface
  1643. - Support tensor value and assignment of mixed tensor index in graph mode.
  1644. - Support tensor comparison, len operator, constexpr syntax, value and assignment of tensor index in pynative mode.
  1645. - Support converting MindSpore IR to pb format for infer model.
  1646. - Support print operator to write data directly on the hard disk.
  1647. - Add the double recursive programming solution for very high speed parallel strategy search in automatic parallel.
  1648. - User interfaces change log
  1649. - Allow the learning rate of AdamWeightDecayDynamicLR and Lamb to be 0([!1826](https://gitee.com/mindspore/mindspore/pulls/1826))
  1650. - Restricting the entire network input parameter is Tensor([!1967](https://gitee.com/mindspore/mindspore/pulls/1967))
  1651. - Turn shape and dtype into attributes instead of interfaces([!1919](https://gitee.com/mindspore/mindspore/pulls/1919))
  1652. - Delete multitypefungraph([!2116](https://gitee.com/mindspore/mindspore/pulls/2116))
  1653. - Refactor the callback module in an encapsulated way, use _CallbackManager instead of_build_callbacks([!2236](https://gitee.com/mindspore/mindspore/pulls/2236))
  1654. - Delete EmbeddingLookup([!2163](https://gitee.com/mindspore/mindspore/pulls/2163))
  1655. - Checkpoint add model_type([!2517](https://gitee.com/mindspore/mindspore/pulls/2517))
  1656. - Executor and performance optimization
  1657. - Heterogeneous execution on CPU and Ascend devices supported, and is verified in Wide&Deep model.
  1658. - Quantitative training of MobileNetV2, Lenet and Resnet50 on Ascend-910 are supported.
  1659. - Support new fusion architecture, which can do fusion optimization across graphs and kernels to improve execution speed.
  1660. - Data processing, augmentation, and save format
  1661. - Support data processing pipeline performance profiling.
  1662. - Support public dataset loading, such as CLUE and Coco.
  1663. - Support more text processing, such as more tokenizers and vocab data.
  1664. - Support MindRecord padded data.
  1665. ### Other Hardware Support
  1666. - GPU platform
  1667. - New model supported: Bert / Wide&Deep.
  1668. - Support setting max device memory.
  1669. - CPU platform
  1670. - New model supported: LSTM.
  1671. ## Bugfixes
  1672. - Models
  1673. - Bert, Move Bert from `example` to `model_zoo`, optimize network for better performance. ([!1902](https://gitee.com/mindspore/mindspore/pulls/1902))
  1674. - VGG16, Move VGG16 from `example` to `model_zoo`, optimize network for better accuracy. ([!2645](https://gitee.com/mindspore/mindspore/pulls/2645))
  1675. - Alexnet, modify parameter setting to improve accuracy ([!1364](https://gitee.com/mindspore/mindspore/pulls/2370))
  1676. - Wide&Deep, Move Wide&Deep from `example` to `model_zoo`, optimize network for better performance. ([!2221](https://gitee.com/mindspore/mindspore/pulls/2221))
  1677. - Python API
  1678. - Fix bug in auto cast([!1766](https://gitee.com/mindspore/mindspore/pulls/1766))
  1679. - Fix bug of register_backward_hook([!2148](https://gitee.com/mindspore/mindspore/pulls/2148))
  1680. - Fix bug of tuple args in pynative mode([!1878](https://gitee.com/mindspore/mindspore/pulls/1878))
  1681. - Fix bug of checking numbers of arguments and graph parameters([!1701](https://gitee.com/mindspore/mindspore/pulls/1701))
  1682. - Executor
  1683. - Fix bug of loading input data repeatedly in pynative mode([!1966](https://gitee.com/mindspore/mindspore/pulls/1966))
  1684. - Fix bug of list cannot be used as input in pynative mode([!1765](https://gitee.com/mindspore/mindspore/pulls/1765))
  1685. - Fix bug of kernel select ([!2103](https://gitee.com/mindspore/mindspore/pulls/2103))
  1686. - Fix bug of pattern matching for batchnorm fusion in the case of auto mix precision.([!1851](https://gitee.com/mindspore/mindspore/pulls/1851))
  1687. - Fix bug of generate hccl's kernel info.([!2393](https://gitee.com/mindspore/mindspore/pulls/2393))
  1688. - GPU platform
  1689. - Fix bug of summary feature invalid([!2173](https://gitee.com/mindspore/mindspore/pulls/2173))
  1690. - Data processing
  1691. - Fix bug of Cifar dataset reading([!2096](https://gitee.com/mindspore/mindspore/pulls/2096))
  1692. - Fix bug of C++ behavior in RandomCropAndResize([!2026](https://gitee.com/mindspore/mindspore/pulls/2026))
  1693. - Fix the bug of mindrecord shuffle([!2420](https://gitee.com/mindspore/mindspore/pulls/2420))
  1694. - Third party
  1695. - Sqlite : Update sqlite to 3.32.2 to handle [CVE-2020-11656](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11656), [CVE-2020-13871](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13871), [CVE-2020-11655](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655), [CVE-2020-9327](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-9327), [CVE-2020-13630](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13630), [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15358), [CVE-2020-13631](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13631), [CVE-2020-13632](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13632), [CVE-2020-13434](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13434), [CVE-2020-13435](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13435), and [CVE-2020-15358](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11655).
  1696. ## Contributors
  1697. Thanks goes to these wonderful people:
  1698. Alexey Shevlyakov, avakh, baihuawei, BowenK, buxue, caifubi, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, Danish Farid, dayschan, dengwentao, dinghao, etone-chan, fangzehua, fary86, geekun, Giancarlo Colmenares, gong chen, gukecai, guohongzilong, hangangqiang, heleiwang, hesham, He Wei, hexia, hongxing, huangdongrun, huanghui, islam_amin, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, Jonathan Yan, jonyguo, Junhan Hu, Kang, kingfo, kouzhenzhong, kpy, kswang, laiyongqiang, leopz, liangzelang, lichenever, lihongkang, Li Hongzhang, lilei, limingqi107, lirongzhen1, liubuyu, liuchongming74, liuwenhao4, liuxiao, Lixia Chen, liyanliu, liyong, lizhenyu, lvliang, Mahdi, Margaret_wangrui, meixiaowei, ms_yan, nhussain, ougongchang, panfengfeng, panyifeng, peilinwang, Peilin Wang, pkuliuliu, qianlong, rick_sanchez, shibeiji, Shida He, shijianning, simson, sunsuodong, suteng, Tinazhang, Tron Zhang, unknown, VectorSL, wandongdong, wangcong, wangdongxu, wangdongxu6, wanghua, wangnan39, Wei Luning, wenchunjiang, wenkai, wilfChen, WilliamLian, wukesong, Xian Weizhao, Xiaoda Zhang, xiefangqi, xulei2020, xunxue, xutianchun, Yang, yanghaitao, yanghaitao1, yanghaoran, yangjie, yangjie159, YangLuo, Yanjun Peng, yankai, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yuchaojie, yujianfeng, zhangzhongpeng, zhangdengcheng, Zhang Qinghua, zhangyinxia, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang, wangdongxu
  1699. Contributions of any kind are welcome!
  1700. # MindSpore 0.3.1-alpha Release Notes
  1701. ## Major Features and Improvements
  1702. ### Ascend 910 Training and Inference Framework
  1703. - Frontend and User Interface
  1704. - Independent model init interface.
  1705. - Data processing, augmentation, and save format
  1706. - Support sample padding for minddataset.
  1707. ## Bugfixes
  1708. - Python API
  1709. - Fix bugs in the lars optimizer([!1894](https://gitee.com/mindspore/mindspore/pulls/1894))
  1710. - Data processing
  1711. - Fix accuracy problem of RandomCropDecodeResize ([!2340](https://gitee.com/mindspore/mindspore/pulls/2340))
  1712. # Release 0.3.0-alpha
  1713. ## Major Features and Improvements
  1714. ### Ascend 910 Training and Inference Framework
  1715. - New models
  1716. - DeepFM: a factorization-machine based neural network for CTR prediction on Criteo dataset.
  1717. - DeepLabV3: significantly improves over our previous DeepLab versions without DenseCRF post-processing and attains comparable performance with other state-of-art models on the PASCAL VOC 2007 semantic image segmentation benchmark.
  1718. - Faster-RCNN: towards real-time object detection with region proposal networks on COCO 2017 dataset.
  1719. - SSD: a single stage object detection methods on COCO 2017 dataset.
  1720. - GoogLeNet: a deep convolutional neural network architecture codenamed Inception V1 for classification and detection on CIFAR-10 dataset.
  1721. - Wide&Deep: jointly trained wide linear models and deep neural networks for recommender systems on Criteo dataset.
  1722. - Frontend and User Interface
  1723. - Complete numpy advanced indexing method. Supports value and assignment through tensor index.
  1724. - Some optimizers support separating parameter groups. Different parameter groups can set different `learning_rate` and `weight_decay`.
  1725. - Support setting submodule's logging level independently, e.g. you can set logging level of module `A` to warning and set logging level of module `B` to info.
  1726. - Support weights to be compiled according to shape to solve the problem of large memory overhead.
  1727. - Add some operators implement and grammar support in pynative mode. To be consistent with graph mode.
  1728. - User interfaces change log
  1729. - Learning rate and weight decay making group params([!637](https://gitee.com/mindspore/mindspore/pulls/637))
  1730. - Support weights to be compiled according to shape([!1015](https://gitee.com/mindspore/mindspore/pulls/1015))
  1731. - delete some context param([!1100](https://gitee.com/mindspore/mindspore/pulls/1100))
  1732. - ImageSummary/ScalarSummary/TensorSummary/HistogramSummary([!1329](https://gitee.com/mindspore/mindspore/pulls/1329))([!1425](https://gitee.com/mindspore/mindspore/pulls/1425))
  1733. - Executor and Performance Optimization
  1734. - Support doing evaluation while in training process, so that the accuracy of training can be easily obtained.
  1735. - Enable second-order optimization for resnet50, which can achieve 75.9% accuracy in 45 epochs (Resnet50 @ImageNet).
  1736. - Optimize pynative implementation and improve it's execution performance.
  1737. - Optimize summary record implementation and improve its performance.
  1738. - Data processing, augmentation, and save format
  1739. - Support simple text processing, such as tokenizer/buildvocab/lookup.
  1740. - Support padding batch.
  1741. - Support split or concat dataset.
  1742. - Support MindDataset reading from file list.
  1743. ### Other Hardware Support
  1744. - GPU platform
  1745. - New models supported: MobileNetV2, MobileNetV3.
  1746. - Support mixed precision training.
  1747. - Support device memory swapping.
  1748. ## Bugfixes
  1749. - Python API
  1750. - An exception to the broadcast input data type check([!712](https://gitee.com/mindspore/mindspore/pulls/712))
  1751. - Fix issues assignsub return value 0([!1036](https://gitee.com/mindspore/mindspore/pulls/1036))
  1752. - Fix issue Conv2dBackpropInput bprop should return 3 instead of 2 items([!1001](https://gitee.com/mindspore/mindspore/pulls/1001))
  1753. - Fix sens shape error of TrainOneStepWithLossScaleCell([!1050](https://gitee.com/mindspore/mindspore/pulls/1050))
  1754. - Fix BatchNormGrad operator([!1344](https://gitee.com/mindspore/mindspore/pulls/1344))
  1755. - Executor
  1756. - Fix dropout,topK and addn errors in PyNative mode ([!1285](https://gitee.com/mindspore/mindspore/pulls/1285), [!1138](https://gitee.com/mindspore/mindspore/pulls/1138), [!1033](https://gitee.com/mindspore/mindspore/pulls/1033)).
  1757. - Fix memory leaks after execution in PyNatvie mode ([!1201](https://gitee.com/mindspore/mindspore/pulls/1201)).
  1758. - Fix HCCL failure in some special scenes ([!1204](https://gitee.com/mindspore/mindspore/pulls/1204), [!1252](https://gitee.com/mindspore/mindspore/pulls/1252)).
  1759. - Fix SSD network when Select failed, can't find kernel info([!1449](https://gitee.com/mindspore/mindspore/pulls/1449)).
  1760. - Fix Topk operator selection strategy bug between aicore and aicpu([!1367](https://gitee.com/mindspore/mindspore/pulls/1367)).
  1761. - Fix input memory size of 'assign' op unequal in control sink mode when assigning a data from one child graph to another child graph([!802](https://gitee.com/mindspore/mindspore/pulls/802)).
  1762. - Fix allreduce ir inconsistency([!989](https://gitee.com/mindspore/mindspore/pulls/989)).
  1763. - GPU platform
  1764. - Fix summary for gradient collection ([!1364](https://gitee.com/mindspore/mindspore/pulls/1364))
  1765. - Fix the slice operator ([!1489](https://gitee.com/mindspore/mindspore/pulls/1489))
  1766. - Data processing
  1767. - Fix memory problems of GeneratorDataset of sub-process ([!907](https://gitee.com/mindspore/mindspore/pulls/907))
  1768. - Fix getting data timeout when training the cifar10 dataset under the lenet([!1391](https://gitee.com/mindspore/mindspore/pulls/1391))
  1769. ## Contributors
  1770. Thanks goes to these wonderful people:
  1771. Alexey Shevlyakov, Amir Lashkari, anthony, baihuawei, biffex, buxue, caifubi, candanzg, caojian05, Cathy Wong, changzherui, chenfei, chengxianbin, chenhaozhe, chenzomi, chujinjin, cristoval, dengwentao, eric, etone-chan, fary86, gaojing, gengdongjie, gongchen, guohongzilong, guozhijian, heleiwang, hesham, He Wei, Hoai Linh Tran, hongxing, huangdongrun, huanghui, Jamie Nisbet, Jesse Lee, jiangjinsheng, jiangzhiwen, jinyaohui, jjfeing, jonwe, jonyguo, Junhan Hu, Kang, kingfo, kswang, laiyongqiang, leopz, lichenever, lihongkang, limingqi107, liubuyu, liuliyan2, liuwenhao4, liuxiao, liuxiao, liyong, lizhenyu, lvliang, Margaret_wangrui, meixiaowei, ms_yan, Nat Sutyanyong, ougongchang, panfengfeng, panyifeng, Peilin Wang, peixu_ren, qianlong, rick_sanchez, seatea, sheng, shijianning, simson, sunsuodong, Tinazhang, VectorSL, wandongdong, wangcong, wanghua, wangnan39, Wei Luning, wenchunjiang, wilfChen, WilliamLian, wsc, wukesong, wuxuejian, Xiaoda Zhang, xiefangqi, xulei2020, Yang, yangjie159, yangruoqi713, yangyongjie, yangzhenzhang, Yanjun Peng, yanzhenxiang2020, yao_yf, Yi Huaijie, yoonlee666, yujianfeng, YuJianfeng, yvetteliu, zhangdengcheng, Zhang Qinghua, zhangz0911gm, zhaojichen, zhaoting, zhaozhenlong, zhoufeng, zhouneng, zhousiyi, zhouyuanshen, Zirui Wu, Ziyan, zjun, ZPaC, lihongzhang
  1772. Contributions of any kind are welcome!
  1773. # MindSpore 0.2.0-alpha Release Notes
  1774. ## Major Features and Improvements
  1775. ### Ascend 910 Training and Inference Framework
  1776. - New models
  1777. - MobileNetV2: Inverted Residuals and Linear Bottlenecks.
  1778. - ResNet101: Deep Residual Learning for Image Recognition.
  1779. - Frontend and User Interface
  1780. - Support for all python comparison operators.
  1781. - Support for math operators **,//,%. Support for other python operators like and/or/not/is/is not/ in/ not in.
  1782. - Support for the gradients of function with variable arguments.
  1783. - Support for tensor indexing assignment for certain indexing type.
  1784. - Support for dynamic learning rate.
  1785. - User interfaces change log
  1786. - DepthwiseConv2dNative, DepthwiseConv2dNativeBackpropFilter, DepthwiseConv2dNativeBackpropInput([!424](https://gitee.com/mindspore/mindspore/pulls/424))
  1787. - ReLU6, ReLU6Grad([!224](https://gitee.com/mindspore/mindspore/pulls/224))
  1788. - GeneratorDataset([!183](https://gitee.com/mindspore/mindspore/pulls/183))
  1789. - VOCDataset([!477](https://gitee.com/mindspore/mindspore/pulls/477))
  1790. - MindDataset, PKSampler([!514](https://gitee.com/mindspore/mindspore/pulls/514))
  1791. - map([!506](https://gitee.com/mindspore/mindspore/pulls/506))
  1792. - Conv([!226](https://gitee.com/mindspore/mindspore/pulls/226))
  1793. - Adam([!253](https://gitee.com/mindspore/mindspore/pulls/253))
  1794. - _set_fusion_strategy_by_idx,_set_fusion_strategy_by_size([!189](https://gitee.com/mindspore/mindspore/pulls/189))
  1795. - CheckpointConfig([!122](https://gitee.com/mindspore/mindspore/pulls/122))
  1796. - Constant([!54](https://gitee.com/mindspore/mindspore/pulls/54))
  1797. - Executor and Performance Optimization
  1798. - Support parallel execution of data prefetching and forward/backward computing.
  1799. - Support parallel execution of gradient aggregation and forward/backward computing in distributed training scenarios.
  1800. - Support operator fusion optimization.
  1801. - Optimize compilation process and improve the performance.
  1802. - Data processing, augmentation, and save format
  1803. - Support multi-process of GeneratorDataset/PyFunc for high performance
  1804. - Support variable batchsize
  1805. - Support new Dataset operators, such as filter,skip,take,TextLineDataset
  1806. ### Other Hardware Support
  1807. - GPU platform
  1808. - Use dynamic memory pool by default on GPU.
  1809. - Support parallel execution of computation and communication.
  1810. - Support continuous address allocation by memory pool.
  1811. - CPU platform
  1812. - Support for windows 10 OS.
  1813. ## Bugfixes
  1814. - Models
  1815. - Fix mixed precision bug for VGG16 model ([!629](https://gitee.com/mindspore/mindspore/pulls/629)).
  1816. - Python API
  1817. - Fix ControlDepend operator bugs on CPU and GPU ([!396](https://gitee.com/mindspore/mindspore/pulls/396)).
  1818. - Fix ArgMinWithValue operator bugs ([!338](https://gitee.com/mindspore/mindspore/pulls/338)).
  1819. - Fix Dense operator bugs on PyNative mode ([!276](https://gitee.com/mindspore/mindspore/pulls/276)).
  1820. - Fix MatMul operator bugs on PyNative mode ([!288](https://gitee.com/mindspore/mindspore/pulls/288)).
  1821. - Executor
  1822. - Fix operator selection bugs and make it general ([!300](https://gitee.com/mindspore/mindspore/pulls/300)).
  1823. - Fix memory reuse bug for GetNext op ([!291](https://gitee.com/mindspore/mindspore/pulls/291)).
  1824. - GPU platform
  1825. - Fix memory allocation in multi-graph scenarios ([!444](https://gitee.com/mindspore/mindspore/pulls/444)).
  1826. - Fix bias_add_grad under fp16 precision ([!598](https://gitee.com/mindspore/mindspore/pulls/598)).
  1827. - Fix support for fp16 kernels on nvidia 1080Ti([!571](https://gitee.com/mindspore/mindspore/pulls/571)).
  1828. - Fix parsing of tuple type parameters ([!316](https://gitee.com/mindspore/mindspore/pulls/316)).
  1829. - Data processing
  1830. - Fix TypeErrors about can't pickle mindspore._c_dataengine.DEPipeline objects([!434](https://gitee.com/mindspore/mindspore/pulls/434)).
  1831. - Add TFRecord file verification([!406](https://gitee.com/mindspore/mindspore/pulls/406)).
  1832. ## Contributors
  1833. Thanks goes to these wonderful people:
  1834. Alexey_Shevlyakov, Cathy, Chong, Hoai, Jonathan, Junhan, JunhanHu, Peilin, SanjayChan, StrawNoBerry, VectorSL, Wei, WeibiaoYu, Xiaoda, Yanjun, YuJianfeng, ZPaC, Zhang, ZhangQinghua, ZiruiWu, amongo, anthonyaje, anzhengqi, biffex, caifubi, candanzg, caojian05, casgj, cathwong, ch-l, chang, changzherui, chenfei, chengang, chenhaozhe, chenjianping, chentingting, chenzomi, chujinjin, dengwentao, dinghao, fanglei, fary86, flywind, gaojing, geekun, gengdongjie, ghzl, gong, gongchen, gukecai, guohongzilong, guozhijian, gziyan, h.farahat, hesham, huangdongrun, huanghui, jiangzhiwen, jinyaohui, jjfeing, jojobugfree, jonathan_yan, jonyguo, jzw, kingfo, kisnwang, laiyongqiang, leonwanghui, lianliguang, lichen, lichenever, limingqi107, liubuyu, liuxiao, liyong, liyong126, lizhenyu, lupengcheng, lvliang, maoweiyong, ms_yan, mxm, ougongchang, panfengfeng, panyifeng, pengyanjun, penn, qianlong, seatea, simson, suteng, thlinh, vlne-v1, wangchengke, wanghua, wangnan39, wangqiuliang, wenchunjiang, wenkai, wukesong, xiefangqi, xulei, yanghaitao, yanghaoran, yangjie159, yangzhenzhang, yankai10, yanzhenxiang2020, yao_yf, yoonlee666, zhangbuxue, zhangz0911gm, zhangzheng, zhaojichen, zhaoting, zhaozhenlong, zhongligeng, zhoufeng, zhousiyi, zjun, zyli2020, yuhuijun, limingqi107, lizhenyu, chenweifeng.
  1835. Contributions of any kind are welcome!
  1836. # MindSpore 0.1.0-alpha Release Notes
  1837. ## Main Features
  1838. ### Ascend 910 Training and Inference Framework
  1839. - Recommended OS: Ubuntu 16.04 (or later) or EulerOS 2.5 or EulerOS 2.8
  1840. - Python version: 3.7.5
  1841. - Preset models
  1842. - ResNet-50: residual structure-based convolutional neural network (CNN) for image classification, which is widely used.
  1843. - AlexNet: classic CNN for image classification, achieving historical results in ImageNet LSVRC-2012.
  1844. - LeNet: classic CNN for image classification, which was proposed by Yann LeCun.
  1845. - VGG16: classic CNN for image classification, which was proposed by Oxford Visual Geometry Group.
  1846. - YoloV3: real-time object detection network.
  1847. - NEZHA: BERT-based Chinese pre-training network produced by Huawei Noah's Ark Laboratory.
  1848. - Execution modes
  1849. - Graph mode: provides graph optimization methods such as memory overcommitment, IR fusion, and buffer fusion to achieve optimal execution performance.
  1850. - PyNative mode: single-step execution mode, facilitating process debugging.
  1851. - Debugging capability and methods
  1852. - Save CheckPoints and Summary data during training.
  1853. - Support asynchronous printing.
  1854. - Dump the computing data.
  1855. - Support profiling analysis of the execution process performance.
  1856. - Distributed execution
  1857. - Support AllReduce, AllGather, and BroadCast collective communication.
  1858. - AllReduce data parallel: Each device obtains different training data, which accelerates the overall training process.
  1859. - Collective communication-based layerwise parallel: Models are divided and allocated to different devices to solve the problem of insufficient memory for large model processing and improve the training speed.
  1860. - Automatic parallel mode: The better data and model parallel mode can be predicted based on the cost model. It is recommended that this mode be used on ResNet series networks.
  1861. - Automatic differentiation
  1862. - Implement automatic differentiation based on Source to Source.
  1863. - Support distributed scenarios and automatic insertion of reverse communication operators.
  1864. - Data processing, augmentation, and save format
  1865. - Load common datasets such as ImageNet, MNIST, CIFAR-10, and CIFAR-100.
  1866. - Support common data loading pipeline operations, such as shuffle, repeat, batch, map, and sampler.
  1867. - Provide basic operator libraries to cover common CV scenarios.
  1868. - Support users to customize Python data augmentation operators through the Pyfunc mechanism.
  1869. - Support the access of user-defined datasets through the GeneratorDataset mechanism.
  1870. - Provide the MindSpore data format, data aggregation and storage, random access example, data partition, efficient parallel read, user-defined index, and dataset search.
  1871. - Convert user datasets to the MindSpore data format.
  1872. - After data processing and augmentation, provide training applications in feed and graph modes.
  1873. - FP32/16 mixed precision computation, supporting automatic and manual configuration
  1874. - Provide common operators such as nn, math, and array, which can be customized.
  1875. ### Inference Deployment
  1876. - Deploy models in MindSpore format on the Ascend 310 platform for inference.
  1877. - Save models in ONNX format.
  1878. - Support saving models in LITE format and running models based on the lightweight inference framework.
  1879. - Recommended OS: Android 4.3 or later
  1880. - Supported network type: LeNet
  1881. - Provide the generalization operators generated by TVM and operators generated after specific networks are tuned.
  1882. ### Other Hardware Support
  1883. - GPU platform training
  1884. - Recommended OS: Ubuntu 16.04
  1885. - CUDA version: 9.2 or 10.1
  1886. - CuDNN version: 7.6 or later
  1887. - Python version: 3.7.5
  1888. - NCCL version: 2.4.8-1
  1889. - OpenMPI version: 3.1.5
  1890. - Supported models: AlexNet, LeNet, and LSTM
  1891. - Supported datasets: MNIST and CIFAR-10
  1892. - Support data parallel.
  1893. - CPU platform training
  1894. - Recommended OS: Ubuntu 16.04
  1895. - Python version: 3.7.5
  1896. - Supported model: LeNet
  1897. - Supported dataset: MNIST
  1898. - Provide only the stand-alone operation version.
  1899. ## Peripherals and Tools
  1900. - [MindSpore Official Website](https://www.mindspore.cn/)
  1901. - [MindInsight Visualization Debugging and Optimization](https://gitee.com/mindspore/mindinsight)
  1902. - [MindArmour Model Security Hardening Package](https://gitee.com/mindspore/mindarmour)
  1903. - [GraphEngine Computational Graph Engine](https://gitee.com/mindspore/graphengine)