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 96 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790
  1. # MindSpore 1.2.0 Release Notes
  2. ## MindSpore
  3. ### API Change
  4. #### Backwards Incompatible Change
  5. ##### Python API
  6. ###### Turn `ops.MakeRefKey` into an internal interface ([!12010](https://gitee.com/mindspore/mindspore/pulls/12010))
  7. 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.
  8. ###### `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))
  9. 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.
  10. ##### `P.FusedBatchNorm`, `P.FusedBatchNormEx` deleted ([!12115](https://gitee.com/mindspore/mindspore/pulls/12115))
  11. The FusedBatchNorm and FusedBatchNormEx interface has been deleted. Please use the batchnorm operator to replace it.
  12. # MindSpore 1.1.1 Release Notes
  13. ## MindSpore
  14. ### Major Features and Improvements
  15. #### NewModels
  16. - [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)
  17. - [STABLE] GRU: a recurrent neural network architecture like the LSTM(Long-Short Term Memory) on Multi30K dataset.(Ascend)
  18. - [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)
  19. - [STABLE] LSTM: a recurrent neural network architecture used to learn word vectors for sentiment analysis on aclImdb_v1 dataset.(Ascend)
  20. - [STABLE] SimplePoseNet: a convolution-based neural network for the task of human pose estimation and tracking on COCO2017 dataset.(Ascend)
  21. #### FrontEnd
  22. - [BETA] Support Tensor Fancy Index Getitem with tuple and list. (Ascend/GPU/CPU)
  23. ### Backwards Incompatible Change
  24. #### Python API
  25. ##### `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))
  26. 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".
  27. <table>
  28. <tr>
  29. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  30. </tr>
  31. <tr>
  32. <td>
  33. ```python
  34. >>> import mindspore.ops as ops
  35. >>>
  36. >>> avg_pool = ops.AvgPool(ksize=2, padding='same')
  37. >>> max_pool = ops.MaxPool(ksize=2, padding='same')
  38. >>> max_pool_with_argmax = ops.MaxPoolWithArgmax(ksize=2, padding='same')
  39. ```
  40. </td>
  41. <td>
  42. ```python
  43. >>> import mindspore.ops as ops
  44. >>>
  45. >>> avg_pool = ops.AvgPool(kernel_size=2, pad_mode='same')
  46. >>> max_pool = ops.MaxPool(kernel_size=2, pad_mode='same')
  47. >>> max_pool_with_argmax = ops.MaxPoolWithArgmax(kernel_size=2, pad_mode='same')
  48. ```
  49. </td>
  50. </tr>
  51. </table>
  52. ##### `ops.TensorAdd`, change API name to `ops.Add` ([!11568](https://gitee.com/mindspore/mindspore/pulls/11568))
  53. 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.
  54. <table>
  55. <tr>
  56. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  57. </tr>
  58. <tr>
  59. <td>
  60. ```python
  61. >>> import mindspore.ops as ops
  62. >>>
  63. >>> add = ops.TensorAdd()
  64. ```
  65. </td>
  66. <td>
  67. ```python
  68. >>> import mindspore.ops as ops
  69. >>>
  70. >>> add = ops.Add()
  71. ```
  72. </td>
  73. </tr>
  74. </table>
  75. ##### `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))
  76. 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.
  77. <table>
  78. <tr>
  79. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  80. </tr>
  81. <tr>
  82. <td>
  83. ```python
  84. >>> import mindspore.ops as ops
  85. >>>
  86. >>> gelu = ops.Gelu()
  87. >>> gelu_grad = ops.GeluGrad()
  88. >>> fast_gelu = ops.FastGelu()
  89. >>> fast_gelu_grad = ops.FastGeluGrad()
  90. ```
  91. </td>
  92. <td>
  93. ```python
  94. >>> import mindspore.ops as ops
  95. >>>
  96. >>> gelu = ops.GeLU()
  97. >>> gelu_grad = ops.GeLUGrad()
  98. >>> fast_gelu = ops.FastGeLU()
  99. >>> fast_gelu_grad = ops.FastGeLUGrad()
  100. ```
  101. </td>
  102. </tr>
  103. </table>
  104. ##### `ops.GatherV2`, change API name to `ops.Gather` ([!11713](https://gitee.com/mindspore/mindspore/pulls/11713))
  105. 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.
  106. <table>
  107. <tr>
  108. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. ```python
  113. >>> import mindspore.ops as ops
  114. >>>
  115. >>> gather = ops.GatherV2()
  116. ```
  117. </td>
  118. <td>
  119. ```python
  120. >>> import mindspore.ops as ops
  121. >>>
  122. >>> gather = ops.Gather()
  123. ```
  124. </td>
  125. </tr>
  126. </table>
  127. ##### `ops.Pack`、`ops.Unpack`, change API name to `ops.Stack`、`ops.Unstack` ([!11828](https://gitee.com/mindspore/mindspore/pulls/11828))
  128. 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.
  129. <table>
  130. <tr>
  131. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  132. </tr>
  133. <tr>
  134. <td>
  135. ```python
  136. >>> import mindspore.ops as ops
  137. >>>
  138. >>> pack= ops.Pack()
  139. >>> unpack= ops.Unpack()
  140. ```
  141. </td>
  142. <td>
  143. ```python
  144. >>> import mindspore.ops as ops
  145. >>>
  146. >>> stack= ops.Stack()
  147. >>> unstack= ops.Unstack()
  148. ```
  149. </td>
  150. </tr>
  151. </table>
  152. ##### `ops.ControlDepend`, add deprecated to ControlDepend ([!11844](https://gitee.com/mindspore/mindspore/pulls/11844))
  153. ControlDepend is deprecated and will be removed in a future version, use Depend instead.
  154. <table>
  155. <tr>
  156. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  157. </tr>
  158. <tr>
  159. <td>
  160. ```pythonNote:
  161. Note:
  162. This operation does not work in `PYNATIVE_MODE`.
  163. ```
  164. </td>
  165. <td>
  166. ```python
  167. Note:
  168. This operation does not work in `PYNATIVE_MODE`.
  169. `ControlDepend` is deprecated from version 1.1 and will be removed in a future version, use `Depend` instead.
  170. ```
  171. </td>
  172. </tr>
  173. </table>
  174. ##### `ops.Depend`, add operator description and use case ([!11815](https://gitee.com/mindspore/mindspore/pulls/11815)), ([!11879](https://gitee.com/mindspore/mindspore/pulls/11879))
  175. Since the ControlDepend operator will be deprecated from version 1.2, it is recommended to use the Depend operator instead.
  176. <table>
  177. <tr>
  178. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  179. </tr>
  180. <tr>
  181. <td>
  182. ```python
  183. Depend is used for processing side-effect operations.
  184. Inputs:
  185. - **value** (Tensor) - the real value to return for depend operator.
  186. - **expr** (Expression) - the expression to execute with no outputs.
  187. Outputs:
  188. Tensor, the value passed by last operator.
  189. Supported Platforms:
  190. ``Ascend`` ``GPU`` ``CPU``
  191. ```
  192. </td>
  193. <td>
  194. ```python
  195. Depend is used for processing dependency operations.
  196. In some side-effect scenarios, we need to ensure the execution order of operators.
  197. In order to ensure that operator A is executed before operator B, it is recommended
  198. to insert the Depend operator between operators A and B.
  199. Previously, the ControlDepend operator was used to control the execution order.
  200. Since the ControlDepend operator will be deprecated from version 1.2, it is
  201. recommended to use the Depend operator instead. The replacement method is as follows::
  202. a = A(x) ---> a = A(x)
  203. b = B(y) ---> y = Depend(y, a)
  204. ControlDepend(a, b) ---> b = B(y)
  205. Inputs:
  206. - **value** (Tensor) - the real value to return for depend operator.
  207. - **expr** (Expression) - the expression to execute with no outputs.
  208. Outputs:
  209. Tensor, the value passed by last operator.
  210. Supported Platforms:
  211. ``Ascend`` ``GPU`` ``CPU``
  212. Examples:
  213. >>> import numpy as np
  214. >>> import mindspore
  215. >>> import mindspore.nn as nn
  216. >>> import mindspore.ops.operations as P
  217. >>> from mindspore import Tensor
  218. >>> class Net(nn.Cell):
  219. ... def __init__(self):
  220. ... super(Net, self).__init__()
  221. ... self.softmax = P.Softmax()
  222. ... self.depend = P.Depend()
  223. ...
  224. ... def construct(self, x, y):
  225. ... mul = x * y
  226. ... y = self.depend(y, mul)
  227. ... ret = self.softmax(y)
  228. ... return ret
  229. ...
  230. >>> x = Tensor(np.ones([4, 5]), dtype=mindspore.float32)
  231. >>> y = Tensor(np.ones([4, 5]), dtype=mindspore.float32)
  232. >>> net = Net()
  233. >>> output = net(x, y)
  234. >>> print(output)
  235. [[0.2 0.2 0.2 0.2 0.2]
  236. [0.2 0.2 0.2 0.2 0.2]
  237. [0.2 0.2 0.2 0.2 0.2]
  238. [0.2 0.2 0.2 0.2 0.2]]
  239. ```
  240. </td>
  241. </tr>
  242. </table>
  243. #### C++ API
  244. ##### change namespace from `mindspore::api` to `mindspore` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  245. <table>
  246. <tr>
  247. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  248. </tr>
  249. <tr>
  250. <td>
  251. ```c++
  252. namespace ms = mindspore::api;
  253. ```
  254. </td>
  255. <td>
  256. ```c++
  257. namespace ms = mindspore;
  258. ```
  259. </td>
  260. </tr>
  261. </table>
  262. ##### `Context` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  263. <table>
  264. <tr>
  265. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  266. </tr>
  267. <tr>
  268. <td>
  269. ```c++
  270. ms::Context::Instance().SetDeviceTarget(ms::kDeviceTypeAscend310).SetDeviceID(0);
  271. ```
  272. </td>
  273. <td>
  274. ```c++
  275. ms::GlobalContext::SetGlobalDeviceTarget(ms::kDeviceTypeAscend310);
  276. ms::GlobalContext::SetGlobalDeviceID(0);
  277. ```
  278. </td>
  279. </tr>
  280. </table>
  281. ##### rename `Tensor` to `MSTensor` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  282. <table>
  283. <tr>
  284. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  285. </tr>
  286. <tr>
  287. <td>
  288. ```c++
  289. ms::Tensor a;
  290. ```
  291. </td>
  292. <td>
  293. ```c++
  294. ms::MSTensor a;
  295. ```
  296. </td>
  297. </tr>
  298. </table>
  299. ##### `Model` move setting of model options from `Build` to ctor `Model` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  300. <table>
  301. <tr>
  302. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  303. </tr>
  304. <tr>
  305. <td>
  306. ```c++
  307. ms::Model model(graph_cell);
  308. model.Build(model_options);
  309. ```
  310. </td>
  311. <td>
  312. ```c++
  313. ms::Model model(graph_cell, model_context);
  314. model.Build();
  315. ```
  316. </td>
  317. </tr>
  318. </table>
  319. ##### `Model` modify `GetInputsInfo`, `GetOutputsInfo` to `GetInputs`, `GetOutputs` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  320. <table>
  321. <tr>
  322. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  323. </tr>
  324. <tr>
  325. <td>
  326. ```c++
  327. std::vector<std::string> names;
  328. std::vector<ms::DataType> types;
  329. std::vector<std::vector<int64_t>> shapes;
  330. std::vector<size_t> mem_sizes;
  331. model.GetInputsInfo(&names, &types, &shapes, &mem_sizes);
  332. std::cout << "Input 0 name: " << names[0] << std::endl;
  333. ```
  334. </td>
  335. <td>
  336. ```c++
  337. auto inputs = model.GetInputs();
  338. std::cout << "Input 0 name: " << inputs[0].Name() << std::endl;
  339. ```
  340. </td>
  341. </tr>
  342. </table>
  343. ##### `Model` modify `Predict` parameters type from `Buffer` to `MSTensor` ([!11574](https://gitee.com/mindspore/mindspore/pulls/11574))
  344. <table>
  345. <tr>
  346. <td style="text-align:center"> 1.1.0 </td> <td style="text-align:center"> 1.1.1 </td>
  347. </tr>
  348. <tr>
  349. <td>
  350. ```c++
  351. std::vector<ms::Buffer> inputs;
  352. std::vector<ms::Buffer> outputs;
  353. model.Predict(inputs, &outputs);
  354. ```
  355. </td>
  356. <td>
  357. ```c++
  358. std::vector<ms::MSTensor> inputs;
  359. std::vector<ms::MSTensor> outputs;
  360. model.Predict(inputs, &outputs);
  361. ```
  362. </td>
  363. </tr>
  364. </table>
  365. ### Deprecations
  366. #### Python API
  367. ##### `ops.SpaceToBatch`, `ops.BatchToSpace` are deprecated in favor of `ops.SpaceToBatchND`, `ops.BatchToSpaceND`([!11527](https://gitee.com/mindspore/mindspore/pulls/11527))
  368. The `ops.SpaceToBatchND`, `ops.BatchToSpaceND` are more general and have same behavior as `ops.SpaceToBatch`, `ops.BatchToSpace` when `block_shape` is a int.
  369. ##### `ops.DepthwiseConv2dNative` is deprecated in favor of `nn.Conv2D`([!11702](https://gitee.com/mindspore/mindspore/pulls/11702))
  370. 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.
  371. ## Contributors
  372. Thanks goes to these wonderful people:
  373. 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
  374. Contributions of any kind are welcome!
  375. # MindSpore 1.1.0 Release Notes
  376. ## MindSpore
  377. ### Major Features and Improvements
  378. #### NewModels
  379. - [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)
  380. - [STABLE] MaskRCNN: a conceptually simple, flexible, and general framework for object instance segmentation on COCO2017 dataset.(Ascend)
  381. - [STABLE] YOLOv4: a state-of-the-art detector which is faster and more accurate than all available alternative detectors on MS COCO dataset.(Ascend)
  382. - [STABLE] Openpose: proposes a bottom-up human attitude estimation algorithm using Part Affinity Fields on COCO2017 dataset.(Ascend)
  383. - [STABLE] CNN-CTC: proposes three major contributions to addresses scene text recognition (STR) on MJSynth and SynthText dataset.(Ascend)
  384. - [STABLE] CenterFace: a practical anchor-free face detection and alignment method for edge devices on WiderFace dataset.(Ascend)
  385. - [STABLE] ShuffleNetV2: a much faster and more accurate network than the previous networks on ImageNet 2012 dataset.(GPU)
  386. - [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)
  387. - [BETA] SSD-GhostNet: based on an Ghost module structure which generate more features from cheap operations on Oxford-IIIT Pet dataset.(Ascend)
  388. - [BETA] DS-CNN: Depthwise separable convolutional neural network on Speech commands dataset.(Ascend)
  389. - [BETA] DeepPotentialH2O: A neural network model for molecular dynamics simulations. (Ascend)
  390. - [BETA] GOMO: A classical numerical method called GOMO for ocean simulation. (GPU)
  391. #### FrontEnd
  392. - [STABLE] Refactor the MINDIR to support 310 inference(Ascend).
  393. - [STABLE] The execution backend of sparse operations in optimizer can be set through 'target'. (Ascend/GPU/CPU)
  394. - [STABLE] Support saving specified network to checkpoint and filtering parameters according to prefix when load checkpoint. (Ascend/GPU/CPU)
  395. - [STABLE] Allow users choose whether to load parameter into network strictly.(Ascend/GPU/CPU)
  396. - [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)
  397. - [STABLE] Support if by if of control flow subgraph. (Ascend/GPU)
  398. - [STABLE] Support the judgment that whether a tensor is in a list. (Ascend/GPU/CPU)
  399. - [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)
  400. - [STABLE] Support Tensor in enumerate. (Ascend/GPU/CPU)
  401. - [STABLE] Support multilevel index assignment. (Ascend/GPU/CPU)
  402. - [STABLE] Support the 'expand_as','view','abs','mean' method of Tensor. (Ascend/GPU/CPU)
  403. - [STABLE] Support ResizeBilinear operation transfer ratio. (Ascend)
  404. - [STABLE] nn.Matmul supports matrix-vector product and batched matrix multiply. (Ascend/GPU)
  405. - [STABLE] nn.Dense supports input tensor whose dimension can be greater than 2. (Ascend/GPU)
  406. - [BETA] Support higher order differentiation for partial operators.(CPU/GPU/Ascend)
  407. - [STABLE] Support Tensor Augassign.(Ascend/GPU)
  408. - [BETA] Support 22 numpy native interfaces.
  409. #### Auto Parallel
  410. - [STABLE] Support parallel optimizer with weight shard. (Ascend/GPU)
  411. - [STABLE] Support distributed operators: element-wise series, UnsortedSegmentSum, UnsortedSegmentMin, Split, BroadcastTo and Unique etc. (Ascend/GPU)
  412. - [STABLE] Support distributed model prediction. (Ascend/GPU)
  413. - [STABLE] Support auto mixed precision level "O2" in auto and semi auto parallel mode. (Ascend/GPU)
  414. - [STABLE] Add MultiFieldEmbeddingLookup high-level interface. (Ascend/GPU)
  415. #### Executor
  416. - [STABLE] ResNet50 performance optimize. (GPU)
  417. - [STABLE] Support modelzoo net in PyNative mode(Ascend 29, GPU 23, CPU 2).(Ascend/GPU/CPU)
  418. - [STABLE] Support PyNative mode on CPU.(CPU)
  419. - [STABLE] Optimize performance in PyNative mode.(Ascend/GPU/CPU)
  420. - [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)
  421. - [BETA] Support second order differentiation in PyNative mode.(Ascend/GPU)
  422. - [DEMO] Add distributed trainning in PyNative mode.(Ascend/GPU)
  423. #### MDP
  424. - [STABLE] Add new operators for Ascend and GPU: IGamma, LGamma, DiGamma;
  425. - [STABLE] Add new distributions for Ascend and GPU: LogNormal, and Logistic;
  426. - [BETA] Add new distributions for Ascend only: Gumbel, Cauchy, Gamma, Beta, and Poisson; Add Categorical distribution for GPU;
  427. - [STABLE] Add new bijectors for Ascend and GPU: GumbelCDF, Invert;
  428. - [STABLE] Add Bayesian layer realized by local reparameterization method for Ascend and GPU;
  429. - [STABLE] Add Anomaly Detection Toolbox based on VAE for Ascend and GPU.
  430. #### DataSet
  431. - [STABLE] Support single node multi-p distributed cache data sharing
  432. - [STABLE] Support GPU profiling with data processing
  433. - [STABLE] Support YOLOV3 dynamic shape in sink mode with dataset
  434. - [STABLE] Support unique processing in the data processing pipeline
  435. - [STABLE] Python layer parameter verification error information unified
  436. ### API Change
  437. #### Backwards Incompatible Change
  438. ##### Python API
  439. ###### Delete shape and dtype of class Initializer ([!7373](https://gitee.com/mindspore/mindspore/pulls/7373/files))
  440. Delete shape and dtype attributes of Initializer class.
  441. ###### Modify the return type of initializer ([!7373](https://gitee.com/mindspore/mindspore/pulls/7373/files))
  442. Previously, the return type of initializer function may be string, number, instance of class Tensor or subclass of class Initializer.
  443. After modification, initializer function will return instance of class MetaTensor, class Tensor or subclass of class Initializer.
  444. 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.
  445. <table>
  446. <tr>
  447. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  448. </tr>
  449. <tr>
  450. <td>
  451. ```python
  452. >>> import mindspore.nn as nn
  453. >>> from mindspore.common import initializer
  454. >>> from mindspore import dtype as mstype
  455. >>>
  456. >>> def conv3x3(in_channels, out_channels)
  457. >>> weight = initializer('XavierUniform', shape=(3, 2, 32, 32), dtype=mstype.float32)
  458. >>> return nn.Conv2d(in_channels, out_channels, weight_init=weight, has_bias=False, pad_mode="same")
  459. ```
  460. </td>
  461. <td>
  462. ```python
  463. >>> import mindspore.nn as nn
  464. >>> from mindspore.common.initializer import XavierUniform
  465. >>>
  466. >>> #1) using string
  467. >>> def conv3x3(in_channels, out_channels)
  468. >>> return nn.Conv2d(in_channels, out_channels, weight_init='XavierUniform', has_bias=False, pad_mode="same")
  469. >>>
  470. >>> #2) using subclass of class Initializer
  471. >>> def conv3x3(in_channels, out_channels)
  472. >>> return nn.Conv2d(in_channels, out_channels, weight_init=XavierUniform(), has_bias=False, pad_mode="same")
  473. ```
  474. </td>
  475. </tr>
  476. </table>
  477. Advantages:
  478. After modification, we can use the same instance of Initializer to initialize parameters of different shapes, which was not allowed before.
  479. <table>
  480. <tr>
  481. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  482. </tr>
  483. <tr>
  484. <td>
  485. ```python
  486. >>> import mindspore.nn as nn
  487. >>> from mindspore.common import initializer
  488. >>> from mindspore.common.initializer import XavierUniform
  489. >>>
  490. >>> weight_init_1 = XavierUniform(gain=1.1)
  491. >>> conv1 = nn.Conv2d(3, 6, weight_init=weight_init_1)
  492. >>> weight_init_2 = XavierUniform(gain=1.1)
  493. >>> conv2 = nn.Conv2d(6, 10, weight_init=weight_init_2)
  494. ```
  495. </td>
  496. <td>
  497. ```python
  498. >>> import mindspore.nn as nn
  499. >>> from mindspore.common import initializer
  500. >>> from mindspore.common.initializer import XavierUniform
  501. >>>
  502. >>> weight_init = XavierUniform(gain=1.1)
  503. >>> conv1 = nn.Conv2d(3, 6, weight_init=weight_init)
  504. >>> conv2 = nn.Conv2d(6, 10, weight_init=weight_init)
  505. ```
  506. </td>
  507. </tr>
  508. </table>
  509. ###### Modify get_seed function ([!7429](https://gitee.com/mindspore/mindspore/pulls/7429/files))
  510. Modify get_seed function implementation
  511. Previously, if seed is not set, the value of seed is default, parameters initialized by the normal function are the same every time.
  512. After modification, if seed is not set, the value of seed is generated randomly, the initialized parameters change according to the random seed.
  513. If you want to fix the initial value of parameters, we suggest to set seed.
  514. ```python
  515. >>> from mindspore.common import set_seed
  516. >>> set_seed(1)
  517. ```
  518. ###### `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))
  519. 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`.
  520. <table>
  521. <tr>
  522. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  523. </tr>
  524. <tr>
  525. <td>
  526. ```python
  527. >>> from mindspore import nn
  528. >>>
  529. >>> start = 1
  530. >>> stop = 10
  531. >>> num = 5
  532. >>> linspace = nn.LinSpace(start, stop, num)
  533. >>> output = linspace()
  534. ```
  535. </td>
  536. <td>
  537. ```python
  538. >>> import mindspore
  539. >>> from mindspore import Tensor
  540. >>> from mindspore import ops
  541. >>>
  542. >>> linspace = ops.LinSpace()
  543. >>> start = Tensor(1, mindspore.float32)
  544. >>> stop = Tensor(10, mindspore.float32)
  545. >>> num = 5
  546. >>> output = linspace(start, stop, num)
  547. ```
  548. </td>
  549. </tr>
  550. </table>
  551. ###### Parts of `Optimizer` add target interface ([!6760](https://gitee.com/mindspore/mindspore/pulls/6760/files))
  552. The usage of the sparse optimizer is changed.
  553. The target interface is used to set the execution backend of the sparse operator.
  554. The add_primitive_attr interface is no longer allowed.
  555. The following optimizers add the target interface: Adam, FTRL, LazyAdam, ProximalAdagrad
  556. <table>
  557. <tr>
  558. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  559. </tr>
  560. <tr>
  561. <td>
  562. ```python
  563. >>> from mindspore.nn import Adam
  564. >>>
  565. >>> net = LeNet5()
  566. >>> optimizer = Adam(filter(lambda x: x.requires_grad, net.get_parameters()))
  567. >>> optimizer.sparse_opt.add_prim_attr("primitive_target", "CPU")
  568. ```
  569. </td>
  570. <td>
  571. ```python
  572. >>> from mindspore.nn import Adam
  573. >>>
  574. >>> net = LeNet5()
  575. >>> optimizer = Adam(filter(lambda x: x.requires_grad, net.get_parameters()))
  576. >>> optimizer.target = 'CPU'
  577. ```
  578. </td>
  579. </tr>
  580. </table>
  581. ###### `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))
  582. Export the MindSpore prediction model to a file in the specified format.
  583. The reference includes: `net`, `*inputs`, `file_name`, `file_format`, `**kwargs`.
  584. Input parameters can be input according to specific export requirements.
  585. Add the file name extension based on the format.
  586. <table>
  587. <tr>
  588. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  589. </tr>
  590. <tr>
  591. <td>
  592. ```python
  593. >>> from mindspore.train.quant import quant
  594. >>>
  595. >>> network = LeNetQuant()
  596. >>> inputs = Tensor(np.ones([1, 1, 32, 32]), mindspore.float32)
  597. >>> quant.export(network, inputs, file_name="lenet_quant.mindir", file_format='MINDIR')
  598. lenet_quant.mindir
  599. ```
  600. </td>
  601. <td>
  602. ```python
  603. >>> from mindspore import export
  604. >>>
  605. >>> network = LeNetQuant()
  606. >>> inputs = Tensor(np.ones([1, 1, 32, 32]), mindspore.float32)
  607. >>> export(network, inputs, file_name="lenet_quant", file_format='MINDIR', quant_mode='AUTO')
  608. lenet_quant.mindir
  609. ```
  610. </td>
  611. </tr>
  612. </table>
  613. ###### `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))
  614. activation (Union[str, Cell, Primitive]): activate function applied to the output of the fully connected layer
  615. <table>
  616. <tr>
  617. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  618. </tr>
  619. <tr>
  620. <td>
  621. ```python
  622. >>> import mindspore.nn as nn
  623. >>>
  624. >>> dense = nn.Dense(1, 1, activation='relu')
  625. ```
  626. </td>
  627. <td>
  628. ```python
  629. >>> import mindspore.nn as nn
  630. >>> import mindspore.ops as ops
  631. >>>
  632. >>> dense = nn.Dense(1, 1, activation=nn.ReLU())
  633. >>> dense = nn.Dense(1, 1, activation=ops.ReLU())
  634. ```
  635. </td>
  636. </tr>
  637. </table>
  638. ###### `tensor.dim()`, `tensor.size()` has been renamed to `tensor.ndim`, `tensor.size` ([!10175](https://gitee.com/mindspore/mindspore/pulls/10175))
  639. Previously, tensor.size() and tensor.dim() were used for checking the total number of elements/dimensions in the tensor.
  640. However, from a user's perspective, tensor.size and tensor.ndim (methods -> properties) are better choices, since they follow the numpy naming convention.
  641. <table>
  642. <tr>
  643. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  644. </tr>
  645. <tr>
  646. <td>
  647. ```python
  648. >>> from mindspore import Tensor
  649. >>>
  650. >>> Tensor((1,2,3)).size()
  651. >>> Tensor((1,2,3)).dim()
  652. ```
  653. </td>
  654. <td>
  655. ```python
  656. >>> from mindspore import Tensor
  657. >>>
  658. >>> Tensor((1,2,3)).size
  659. >>> Tensor((1,2,3)).ndim
  660. ```
  661. </td>
  662. </tr>
  663. </table>
  664. ###### `EmbeddingLookup` add a config in the interface: sparse ([!8202](https://gitee.com/mindspore/mindspore/pulls/8202))
  665. sparse (bool): Using sparse mode. When 'target' is set to 'CPU', 'sparse' has to be true. Default: True.
  666. <table>
  667. <tr>
  668. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  669. </tr>
  670. <tr>
  671. <td>
  672. ```python
  673. >>> from mindspore.nn import EmbeddingLookup
  674. >>>
  675. >>> input_indices = Tensor(np.array([[1, 0], [3, 2]]), mindspore.int32)
  676. >>> result = EmbeddingLookup(4,2)(input_indices)
  677. >>> print(result.shape)
  678. (2, 2, 2)
  679. ```
  680. </td>
  681. <td>
  682. ```python
  683. >>> from mindspore.nn import EmbeddingLookup
  684. >>>
  685. >>> input_indices = Tensor(np.array([[1, 0], [3, 2]]), mindspore.int32)
  686. >>> result = EmbeddingLookup(4,2)(input_indices, sparse=False)
  687. >>> print(result.shape)
  688. (2, 2, 2)
  689. ```
  690. </td>
  691. </tr>
  692. </table>
  693. ###### `nn.probability.bijector` change types of attributes from (int, float) to (float, list, numpy.ndarray, Tensor) ([!8191](https://gitee.com/mindspore/mindspore/pulls/8191))
  694. Attributes Type change: (int, float) -> (float, list, numpy.ndarray, Tensor).
  695. Int type is not supported anymore. Parameters of all bijectors should be type float, list, numpy.ndarray or Tensor.
  696. <table>
  697. <tr>
  698. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  699. </tr>
  700. <tr>
  701. <td>
  702. ```python
  703. >>> import mindspore.nn.probability.bijector as msb
  704. >>>
  705. >>> power = 2
  706. >>> bijector = msb.PowerTransform(power=power)
  707. ```
  708. </td>
  709. <td>
  710. ```python
  711. >>> import mindspore.nn.probability.bijector as msb
  712. >>>
  713. >>> power = 2.0
  714. >>> bijector = msb.PowerTransform(power=power)
  715. ```
  716. </td>
  717. </tr>
  718. </table>
  719. ###### `nn.probability.bijector.GumbelCDF` remove a attribute in the interface: dtype ([!8191](https://gitee.com/mindspore/mindspore/pulls/8191))
  720. dtype is removed from GumbelCDF and is no longer an argument of the class.
  721. <table>
  722. <tr>
  723. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  724. </tr>
  725. <tr>
  726. <td>
  727. ```python
  728. >>> import mindspore.nn.probability.bijector as msb
  729. >>> from mindspore import dtype as mstype
  730. >>>
  731. >>> bijector = msb.GumbelCDF(loc=0.0, scale=1.0, dtype=mstype.float32)
  732. ```
  733. </td>
  734. <td>
  735. ```python
  736. >>> import mindspore.nn.probability.bijector as msb
  737. >>>
  738. >>> bijector = msb.GumbelCDF(loc=0.0, scale=1.0)
  739. ```
  740. </td>
  741. </tr>
  742. </table>
  743. ###### `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))
  744. 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.
  745. <table>
  746. <tr>
  747. <td style="text-align:center"> 1.0.1 </td> <td style="text-align:center"> 1.1.0 </td>
  748. </tr>
  749. <tr>
  750. <td>
  751. ```python
  752. >>> from mindspore.nn.layer.quant import Conv2dBnAct, DenseBnAct
  753. ```
  754. </td>
  755. <td>
  756. ```python
  757. >>> from mindspore.nn import Conv2dBnAct, DenseBnAct
  758. ```
  759. </td>
  760. </tr>
  761. </table>
  762. ###### `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))
  763. 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.
  764. ### Bug fixes
  765. #### FrontEnd
  766. - [STABLE] Fix the problem of the cse optimization in the situation of control flow. (Ascend/GPU)
  767. #### Auto Parallel
  768. - [STABLE] Resolve the restriction: input and output layouts of Reshape are restricted in tensor redistribution. (Ascend/GPU)
  769. - [STABLE] Resolve the restriction: output strategy should be data parallel in model evaluation. (Ascend/GPU)
  770. #### Executor
  771. - [STABLE] Fix fusion operator compilation cache. (Ascend)
  772. - [STABLE] Fix compilation error of dynamic shape operator. (Ascend)
  773. - [STABLE] Fix bug of pynative cannot insert transdata of node output when node should be spilted in the backend opt.(Ascend)
  774. - [STABLE] Fix the bug of TensorMove and memcpy_async merge to one after backend cse pass (Ascend)
  775. #### DataSet
  776. - [STABLE] Fix cache server hang on RequestFreeTag. (Ascend/GPU/CPU)
  777. - [STABLE] Fix hung when use pyfunc multi-processing. (Ascend/GPU/CPU)
  778. - [STABLE] Fix add multiple parent nodes to tree node cause core dump. (Ascend/GPU/CPU)
  779. ## MindSpore Lite
  780. ### Major Features and Improvements
  781. #### Converter and runtime
  782. 1. Support dynamic shape in MindSpore Lite Converter.
  783. 2. Optimize sub-graph mechanism by dynamically splitting the entire graph into multiple subgraphs based on the operator supported, backend hardware and user configuration.
  784. 3. Support TensorList and TensorList operators such as TensorListFromTensor, TensorListGetItem and so on.
  785. 4. Support BatchMatMul fusion and LSTM fusion in MindSpore Lite Converter.
  786. 5. Support converting model and run inference on Windows operator system.
  787. 6. Support Model(.ms) visualization on Netron.
  788. 7. Support Tensorflow model in MindSpore Lite Converter
  789. 8. Add 86 converter parsers.
  790. 9. Convert aware training model without user’s awareness
  791. 10. Support scalar tensor in MindSpore Lite Converter and Runtime
  792. 11. Support NPU backend on HUAWEI Kirin SoC.[BETA]
  793. 12. Merge timeprofiler into benchmark
  794. #### CPU backend optimization
  795. 1. Add 50+ new operators, including new Op type(like Adder, Gru).
  796. 2. Enhanced performance on armv8.2 supported platform. For example, utilizing sdot instruction more efficiently.
  797. 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.
  798. 4. Extending to support operators for x86_64 platform based on SSE/AVX instruction set.
  799. #### OpenCL backend
  800. 1. Add new ops: add 10+ ops, total 58 ops;
  801. 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
  802. 3. Add Online Graph optimzation: by fusion Convolution/Matmul/Fullconnection and add/mul/pad/reshape, improve performance up to 50+% for some networks;
  803. 4. Add auto tuning: by online tuning in the graph compilation phase, optimize performance up to 10%;
  804. 5. Add weight quant: support weight quant
  805. 6. Add opencl kernel binary cache: improve Initialization time .
  806. #### Post quantization
  807. 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:
  808. 1. perchannel asymmetric quantization for weights, such as MAX_MIN and KMEANS
  809. 2. Perlayer symmetric quantization for activation, such as KL and MAX_MIN.
  810. 3. perlayer asymmetrical quantization for activation, such as, RemoveOutlier.
  811. 4. accuracy loss compensation, such as BiasCorrection
  812. | mobilenet_v2 | ACC (ImageNet) |
  813. |---|---|
  814. | FP32 | 71.56% |
  815. |A8W8 | 71.16% |
  816. | A8W8(without BiasCorrection) | 70.74% |
  817. | A8W7 | 71.06% |
  818. | A7W7 | 70.78% |
  819. 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%.
  820. #### Training on Device
  821. Within MindSpore 1.1 release, the MindSpore Lite provides the following Training-on-Device (ToD) capabilities:
  822. 1. Learning from scratch and Transfer Learning strategies are supported
  823. 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)
  824. 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.
  825. 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.
  826. 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.
  827. ### API Change
  828. #### API Incompatible Change
  829. ##### C++ API
  830. - [Modify] Context now support multi-context configuration.(Context.h)
  831. - [Modify] Callback is move from lite_session.h into ms_tensor.h.
  832. - [Modify] GetInputsByName in lite_session.h is changed into GetInputsByTensorName
  833. - [Add] add static LiteSession *CreateSession(const char*model_buf, size_t size, const lite::Context *context) in lite_session.h
  834. - [Add] add GetErrorInfo interface returning error message in errorcode.h
  835. - [Delete] Remove model_generated.h, ops_generated.h and headers of FlatBuffers library from interfaces
  836. ##### Java API
  837. - [Add] Implement JNI layer and add Java api for CPU and GPU backend
  838. #### Deprecations
  839. ##### C++ API
  840. Deprecate Interface GetOutputsByNodeName
  841. ### Bug fixes
  842. - [BUGFIX] Fix the bug in sub-graph segmentation
  843. - [BUGFIX] Fix the bug in Tensor getitem in which the ellipsis matches the wrong dim-size.
  844. - [BUGFIX] Fix the bug that activation modification after defining Dense will not take effect.
  845. ## Contributors
  846. Thanks goes to these wonderful people:
  847. zhouyifengCode, huqi, JulyAi, damon0626, chenbo116, rmdyh, davidmc, gray0v0, doitH, Gogery, zymaa, xinyunfan
  848. 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
  849. Contributions of any kind are welcome!
  850. # MindSpore 1.0.0 Release Notes
  851. ## Major Features and Improvements
  852. ### MindSpore Training and Inference Framework
  853. #### Ascend 910
  854. - New models
  855. - 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.
  856. - UNet2D-Medical: Unet Medical model for 2D image segmentation, Convolutional Networks for Biomedical Image Segmentation on ISBI Challenge database.
  857. - Frontend and user interface
  858. - Second-Order Optimization
  859. - 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).
  860. - New GNN model BGCF
  861. - Bayesian Graph Convolutional Filtering network which naturally incorporate the uncertainty in the user-item interaction graph shows excellent recommendation performance on Amazon-Beauty dataset.
  862. - Add append interface for SequentialCell.
  863. - Add a level `auto` for AMP.
  864. - Executor and performance optimization
  865. - Support quantitative network (Resnet50 & YoloV3 & MobileNetV2).
  866. - Project ease of use optimization: project compilation time optimization, CMakelist regularization, cudnn, cuda independent compilation and installation independent.
  867. - Data processing, augmentation, and save format
  868. - Support GeneratorDataset return string type
  869. #### Other Hardware Support
  870. - GPU platform
  871. - Enable second-order optimization for resnet50 on GPU, which achieve 30% improvement on training time compared to SGD with Momentum (Resnet50 @ImageNet).
  872. #### User interfaces change log
  873. - Remove global object GradOperation in Autodiff([!5011](https://gitee.com/mindspore/mindspore/pulls/5011))
  874. - Remove useless attribute 'name' in Autodiff([!5172](https://gitee.com/mindspore/mindspore/pulls/5172))
  875. - Rectification distributed init([!5350](https://gitee.com/mindspore/mindspore/pulls/5350))
  876. - Move the setting of ParalleMode from train.parallel_utils to context([!5351](https://gitee.com/mindspore/mindspore/pulls/5351))
  877. - Modification of save_checkpoint([!5482](https://gitee.com/mindspore/mindspore/pulls/5482))
  878. - Wrap numpy random seed into an api([!5634](https://gitee.com/mindspore/mindspore/pulls/5634))
  879. - Delete enable_fused_layernorm in some modelzoo scripts([!5665](https://gitee.com/mindspore/mindspore/pulls/5665))
  880. - Move 'multi-subgraphs' interface to internal([!5696](https://gitee.com/mindspore/mindspore/pulls/5696))
  881. - Rename mirror_mean to gradient_mean([!5700](https://gitee.com/mindspore/mindspore/pulls/5700))
  882. - Remove default value of 'group' of DepthWiseConv2d([!5865](https://gitee.com/mindspore/mindspore/pulls/5865))
  883. - Modify interface for function and remove duplicated def([!5958](https://gitee.com/mindspore/mindspore/pulls/5958))
  884. - Unify Conv2d and DepthwiseConv2d([!5916](https://gitee.com/mindspore/mindspore/pulls/5916))
  885. - Modification of SoftmaxCrossEntropyWithLogits([!5502](https://gitee.com/mindspore/mindspore/pulls/5502))
  886. - Change API set_strategy() to shard()([!5991](https://gitee.com/mindspore/mindspore/pulls/5991))
  887. - Move batch_size from bert_cfg_cfg to cfg([!6233](https://gitee.com/mindspore/mindspore/pulls/6233))
  888. - Remove unused parameters from SummaryRecord __init__([!5548](https://gitee.com/mindspore/mindspore/pulls/5548))
  889. - remove sens parameter of TrainOneStepWithLossScaleCell([!5753](https://gitee.com/mindspore/mindspore/pulls/5753))
  890. - optimize the TrainOneStepCell for user's define([!6159](https://gitee.com/mindspore/mindspore/pulls/6159))
  891. - delete seed0 and seed1 of nn.Dropout([!5735](https://gitee.com/mindspore/mindspore/pulls/5735))
  892. - delete DataWrapper([!6101](https://gitee.com/mindspore/mindspore/pulls/6101))
  893. - LSTM API optimization([!6374](https://gitee.com/mindspore/mindspore/pulls/6374))
  894. - Merge P\C\F of ops([!5645](https://gitee.com/mindspore/mindspore/pulls/5645))
  895. - delete SoftmaxCrossEntropyExpand interface([!6607](https://gitee.com/mindspore/mindspore/pulls/6607))
  896. - Adjust GroupNorm interface([!6329](https://gitee.com/mindspore/mindspore/pulls/6329))
  897. - Modify init interface to internal interface([!6651](https://gitee.com/mindspore/mindspore/pulls/6651))
  898. - Log optimization([!5842](https://gitee.com/mindspore/mindspore/pulls/5842))
  899. - Remove useless API dataset.set_dataset_size([!5806](https://gitee.com/mindspore/mindspore/pulls/5806))
  900. - Some of Dataset API add usage parameter([!5605](https://gitee.com/mindspore/mindspore/pulls/5605))
  901. - Change the import path, such as from mindspore.dataset.transforms.vision to mindspore.dataset.vision.transforms([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  902. - Rename ImageFolderDatasetV2 to ImageFolderDataset([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  903. - Dataset.map parameter optimization([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  904. - Add new api dataset.get_col_names([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  905. - Add new api dataset.get_col_names([!5384](https://gitee.com/mindspore/mindspore/pulls/5384))
  906. - Remove useless API MindRecord finish([!5580](https://gitee.com/mindspore/mindspore/pulls/5580))
  907. ### MindSpore Lite
  908. - Converter
  909. - Add 6 TFLite op, 7 Caffe op, 1 ONNX op.
  910. - Add support for Windows.
  911. - Support parallel inference of multiple sessions to adapt to more scenarios
  912. - Support 8bits only weight-quantization, most main-stream models has small accuracy loss (less than 0.5%) when compared to non-qunantized fp32 model.
  913. - CPU & GPU
  914. - Add 20 CPU ops,include FP32, int8/uint8, FP16 and int32 ops.
  915. - Add supporting FP16 for GPU, add 14 GPU ops include FP32/FP16.
  916. - Add Buffer/Image2D transform op for GPU
  917. - Performance optimization for CPU ops focus on ARM32.
  918. - Performance optimization for GPU Convolution using winograd.
  919. - Tool & example
  920. - Add object detection Android Demo.
  921. ## Bugfixes
  922. - Models
  923. - fix the constant folding problem in multiply.([!6092](https://gitee.com/mindspore/mindspore/pulls/6092))
  924. - move batch_size from bert_net_cfg to cfg in bert scripts.([!6233](https://gitee.com/mindspore/mindspore/pulls/6233))
  925. - modify the checkpoint file path.([!6137](https://gitee.com/mindspore/mindspore/pulls/6137))
  926. - Python API
  927. - fix semi auto parallel parameter of reshape has another user([!5722](https://gitee.com/mindspore/mindspore/pulls/5722))
  928. - raise ValueError when call hook function in graph mode([!5831](https://gitee.com/mindspore/mindspore/pulls/5831))
  929. - Executor
  930. - fix pynative mode to build temporary nn objects.([!6189](https://gitee.com/mindspore/mindspore/pulls/6189))
  931. - fix the accuracy problem of multiple inputs of multi-card communication operator broadcast.([!6522](https://gitee.com/mindspore/mindspore/pulls/5622))
  932. - fix the problem that the sample distribution interface categorical does not support graph mode.([!5772](https://gitee.com/mindspore/mindspore/pulls/5772))
  933. - fix the random seed failure problem of the polynomial downsampling distribution operator.([!5948](https://gitee.com/mindspore/mindspore/pulls/5948))
  934. - fix unnecessary address binding issues in GPU heterogeneous scenarios.([!6232](https://gitee.com/mindspore/mindspore/pulls/6232))
  935. - GPU platform
  936. - fix for kernel resource leak([!5315](https://gitee.com/mindspore/mindspore/pulls/5315))
  937. - fix for insufficient memory for continuous unit test running([!5617](https://gitee.com/mindspore/mindspore/pulls/5617))
  938. - fix for the memory leak in the sparse slicer([!5578](https://gitee.com/mindspore/mindspore/pulls/5578))
  939. - Data processing
  940. - fix hang when use pyfunc([!6346](https://gitee.com/mindspore/mindspore/pulls/6346))
  941. - fix GPU device queue does not release GIL during resource clean up([!5964](https://gitee.com/mindspore/mindspore/pulls/5964))
  942. - fix hang if scripte exit unnormally([!6441](https://gitee.com/mindspore/mindspore/pulls/6441))
  943. - Third party
  944. - 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).
  945. - 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).
  946. ## Contributors
  947. Thanks goes to these wonderful people:
  948. 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
  949. Contributions of any kind are welcome!
  950. # MindSpore 0.7.0-beta Release Notes
  951. ## Major Features and Improvements
  952. ### MindSpore Training and Inference Framework
  953. #### Ascend 910
  954. - New models
  955. - TinyBert: a smaller and faster version of BERT using transformer distillation for natural language understanding on GLUE benchmark.
  956. - SE-ResNet50: add Squeeze-and-Excitation blocks(SE-Blocks) to the resnet50 network to improve channel interdependencies for image classification on ImageNet 2012 dataset.
  957. - Inception V3: the third version of Inception convolutional architectures for image classification on ImageNet 2012 dataset.
  958. - Frontend and user interface
  959. - Embedding operator high-level packaging to support segmented by field for Wide&Deep.
  960. - Load multi-node checkpoint into single-process to support host-device hybrid inference.
  961. - Support Concat/Tile/Strideslice distributed operators.
  962. - Support cumulative gradient and batch training split.
  963. - Support variable parameter input for Cell object.
  964. - Parameter mixed calculation optimization for pynative mode.
  965. - Deep Probabilistic Programming
  966. - Support statistical distributions classes used to generate stochastic tensors.
  967. - Support probabilistic inference algorithms.
  968. - Support BNN layers used to construct BNN in Graph mode.
  969. - Support interfaces for the transformation between BNN and DNN in Graph mode.
  970. - Support uncertainty estimation to estimate epistemic uncertainty and aleatoric uncertainty.
  971. - User interfaces change log
  972. - change base class of parameter([!3473](https://gitee.com/mindspore/mindspore/pulls/3473))
  973. - change binary to mindir([!4258](https://gitee.com/mindspore/mindspore/pulls/4258))
  974. - change export from geir to air([!4269](https://gitee.com/mindspore/mindspore/pulls/4269))
  975. - Init parameter data by default([!3967](https://gitee.com/mindspore/mindspore/pulls/3967))
  976. - change IndexedSlices to RowTensor([!4031](https://gitee.com/mindspore/mindspore/pulls/4031))
  977. - Must set or change parallel mode before any Initializer created([!4801](https://gitee.com/mindspore/mindspore/pulls/4801))
  978. - Executor and performance optimization
  979. - MindSpore graph compilation process performance improved by 20%.
  980. - Decoupling C++ and Python modules to achieve separate compilation of core modules.
  981. - Data processing, augmentation, and save format
  982. - Support automatic data augmentation
  983. - Support GNN distributed cache in single node
  984. - Support ConcatDataset using distributed sampler
  985. #### Other Hardware Support
  986. - GPU platform
  987. - New model supported: VGG16, ResNet101, DeepFM.
  988. - Support some distributed operators in ResNet50 and Wide&Deep.
  989. - Support automatic parallel for Wide&Deep.
  990. - Support function funcs[i](*inputs) (such as switch-case).
  991. - Support distributed training with parameter server.
  992. - Support GPU operator profiling.
  993. - Performance optimization of the distributed training with allreduce.
  994. - Performance optimization of the mixed precision training.
  995. - Performance optimization of the pynative mode.
  996. - Performance optimization of the convolution operator, batch normalization operator.
  997. - CPU platform
  998. - Support MobileNetV2 Re-Training: Re-train the network with different class number.
  999. ### MindSpore Lite
  1000. - Converter
  1001. - Support third-party models, including TFLite/Caffe/ONNX.
  1002. - Add 93 TFLite op.
  1003. - Add 24 Caffe op.
  1004. - Add 62 ONNX op.
  1005. - Add 11 optimized passes, include fusion/const fold.
  1006. - Support aware-training and Post-training quantization.
  1007. - CPU
  1008. - Add 100+ops,support fp32, int8/uint8, FP16 ops
  1009. - Support fast convolution algorithms: Sliding Window, Img2col + Gemm, Strassen, Winograd
  1010. - Support assembly/neon instruction.
  1011. - Support CPU fp16 and sdot on ARM v8.2+.
  1012. - GPU
  1013. - Add 20+ ops for OpenCL.
  1014. - Support image2D/buffer format.
  1015. - Optimize online initialization time.
  1016. - add optimized convolution1X1/3X3/depthwise/convolution_transposed for OpenCL.
  1017. - Tool & example
  1018. - Add benchmark and TimeProfile tools.
  1019. - Add image classification Android Demo.
  1020. ## Bugfixes
  1021. - Models
  1022. - normalize the readme file([!5410](https://gitee.com/mindspore/mindspore/pulls/5410))
  1023. - fix a sink_size bug for transformer([!5393](https://gitee.com/mindspore/mindspore/pulls/5393))
  1024. - fix bool type optional for resnet50([!5363](https://gitee.com/mindspore/mindspore/pulls/5363))
  1025. - Python API
  1026. - improve interface '__bool__' for tensor([!4000](https://gitee.com/mindspore/mindspore/pulls/4000))
  1027. - fix GPU-ResizeNearestNeighbor([!3760](https://gitee.com/mindspore/mindspore/pulls/3760))
  1028. - fix topK multi dimension grad func([!3711](https://gitee.com/mindspore/mindspore/pulls/3711))
  1029. - fix scatterop error msg([!3699](https://gitee.com/mindspore/mindspore/pulls/3699))
  1030. - fix bug of cast dtype when using mix_presion in pynative mode([!3730](https://gitee.com/mindspore/mindspore/pulls/3730))
  1031. - Executor
  1032. - fix etsnet train error when UnsegmentSum's first input shape is (1,) ([!4573](https://gitee.com/mindspore/mindspore/pulls/4573))
  1033. - fix bug of result error in while control flow because of unsupporting for value reference ([!4103](https://gitee.com/mindspore/mindspore/pulls/4103))
  1034. - fix bug of the output tensor does not carry device data type ([!3774](https://gitee.com/mindspore/mindspore/pulls/3774))
  1035. - fix bug of avoiding multi attr value are eliminated in pynative mode ([!4225](https://gitee.com/mindspore/mindspore/pulls/4225))
  1036. - fix bug of AssignAdd unable to work normally in multi-cases ([!5171](https://gitee.com/mindspore/mindspore/pulls/5171))
  1037. - GPU platform
  1038. - improve the environment variable checking for nvcc compiler path ([!5140](https://gitee.com/mindspore/mindspore/pulls/5140))
  1039. - fix bug of error in cast operator conversion from fp16 to fp32 ([!4147](https://gitee.com/mindspore/mindspore/pulls/4147))
  1040. - fix bug of the array out of bound in case of make_tuple operator ([!5219](https://gitee.com/mindspore/mindspore/pulls/5219))
  1041. - Data processing and Pro
  1042. - fix GeneratorDataset time out([!3624](https://gitee.com/mindspore/mindspore/pulls/3624))
  1043. - fix concat operator get_dataset_size error([!4701](https://gitee.com/mindspore/mindspore/pulls/4701))
  1044. - fixing python validator for Repeat Op([!4366](https://gitee.com/mindspore/mindspore/pulls/4366))
  1045. - Third party
  1046. - 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).
  1047. - 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).
  1048. ## Contributors
  1049. Thanks goes to these wonderful people:
  1050. 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
  1051. Contributions of any kind are welcome!
  1052. # MindSpore 0.6.0-beta Release Notes
  1053. ## Major Features and Improvements
  1054. ### Ascend 910 Training and Inference Framework
  1055. - New models
  1056. - There are official, research and community under modelzoo.
  1057. - Official is maintained with the newest APIs by MindSpore team, MaskRCNN are added.
  1058. - Research is uploaded by researchers for official review, and APIs may not be updated in time.
  1059. - Community reprints the relevant links of partner research results.
  1060. - Hub added on the same level as modelzoo, synchronous storage of materials needed for official hub web pages which will be launched soon.
  1061. - Support pre-trained models, few lines of code can be used to download and load pre-trained models, supporting inference or transfer learning.
  1062. - Frontend and user interface
  1063. - Supports user side operator compilation and graph execution error rendering.
  1064. - Uniform definition dynamic learning rate behavior in optimizers.
  1065. - Support IndexSlice in sparse expression.
  1066. - Support use parent construct method during construct.
  1067. - Support asynchronous execution save checkpoint file.
  1068. - Support implicit type conversion in pynative mode.
  1069. - User interfaces change log
  1070. - unform learning rate behavior in optimizers([!2755](https://gitee.com/mindspore/mindspore/pulls/2755))
  1071. - rename operator of sparse optimizer([!3217](https://gitee.com/mindspore/mindspore/pulls/3217))
  1072. - move profiler module from mindinsight to mindspore([!3075](https://gitee.com/mindspore/mindspore/pulls/3075))
  1073. - VOCDataset output change to multi-columns([!3093](https://gitee.com/mindspore/mindspore/pulls/3093))
  1074. - GetDatasize feature([!3212](https://gitee.com/mindspore/mindspore/pulls/3212))
  1075. - dataset: modify config api([!2936](https://gitee.com/mindspore/mindspore/pulls/2936))
  1076. - Executor and performance optimization
  1077. - Decouple C++ and python, so make the architecture more extensible.
  1078. - Parameter Server for distributed deep learning supported.
  1079. - Serving:a flexible service deployment framework for deep learning models.
  1080. - Memory reuse is enhanced, and the batch size of Bert large model is increased from 96 to 160 on a single server.
  1081. - Data processing, augmentation, and save format
  1082. - Support MindRecord save operator after date processing
  1083. - Support automatic fusion operator, such as decode/resize/crop
  1084. - Support CSV dataset loading
  1085. ### Other Hardware Support
  1086. - GPU platform
  1087. - New model supported: ResNext50, WarpCTC and GoogLeNet.
  1088. - Support hyperparametric search and data enhanced automl on GPU.
  1089. - Support Resnet50 automatic parallel in GPU backend.
  1090. ## Bugfixes
  1091. - Models
  1092. - Improved the performance and accuracy on ResNet50([!3456](https://gitee.com/mindspore/mindspore/pulls/3456))
  1093. - Fixed the performance test case of bert([!3486](https://gitee.com/mindspore/mindspore/pulls/3486))
  1094. - Python API
  1095. - Fix assign used in while loop([!2720](https://gitee.com/mindspore/mindspore/pulls/2720))
  1096. - Revert optimize the graph output of all nop node.([!2857](https://gitee.com/mindspore/mindspore/pulls/2857))
  1097. - Print tensor as numpy.([!2859](https://gitee.com/mindspore/mindspore/pulls/2859))
  1098. - Support weight decay for sparse optimizer([!2668](https://gitee.com/mindspore/mindspore/pulls/2668))
  1099. - Fix BatchToSpaceND([!2741](https://gitee.com/mindspore/mindspore/pulls/2741))
  1100. - Fixing type check mistakes of InplaceAdd and Inplace Sub ops([!2744](https://gitee.com/mindspore/mindspore/pulls/2744]))
  1101. - Change order param only equal to group param([!2748](https://gitee.com/mindspore/mindspore/pulls/2748))
  1102. - Executor
  1103. - The performance of graph with control flow is optimized([!2931](https://gitee.com/mindspore/mindspore/pulls/2931))
  1104. - Fix bug of wrong number of tuple layers([!3390](https://gitee.com/mindspore/mindspore/pulls/3390))
  1105. - Fix cpu multi graph memory exception([!3631](https://gitee.com/mindspore/mindspore/pulls/3631))
  1106. - Enable data sync when calling operator without defining a cell([!3081](https://gitee.com/mindspore/mindspore/pulls/3081))
  1107. - Fix argmaxwith value error in pynative mode on GPU([!3082](https://gitee.com/mindspore/mindspore/pulls/3082))
  1108. - Fix precision error with fp16 input on pynative mode([!3196](https://gitee.com/mindspore/mindspore/pulls/3196))
  1109. - Data processing
  1110. - Fix bug of RandomColor and RandomSharpness default parameter checking ([!2833](https://gitee.com/mindspore/mindspore/pulls/2833))
  1111. - Fix process hung when training and eval ([!3469](https://gitee.com/mindspore/mindspore/pulls/3469))
  1112. - Third party
  1113. - 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).
  1114. - 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).
  1115. ## Contributors
  1116. Thanks goes to these wonderful people:
  1117. 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
  1118. Contributions of any kind are welcome!
  1119. # MindSpore 0.5.2-beta Release Notes
  1120. ## Major Features and Improvements
  1121. ### Ascend 910 Training and Inference Framework
  1122. - New models
  1123. - DenseNet121: a convolution based neural network for the task of image classification on ImageNet 2012 dataset.
  1124. ## Bugfixes
  1125. - Models
  1126. - VGG16,Alexnet,GoogleNet,optimize network for better performance. ([!5539](https://gitee.com/mindspore/mindspore/pulls/5539))
  1127. - YOLOV3, fix yolov3_darknet53 dataset bug. ([!5658](https://gitee.com/mindspore/mindspore/pulls/5658))
  1128. ## Contributors
  1129. Thanks goes to these wonderful people:
  1130. 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
  1131. Contributions of any kind are welcome!
  1132. # MindSpore 0.5.0-beta Release Notes
  1133. ## Major Features and Improvements
  1134. ### Ascend 910 Training and Inference Framework
  1135. - New models
  1136. - ResNext50: a simple, highly modularized network architecture using aggregated resdiual transformations for image classification on ImageNet 2012 dataset.
  1137. - 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.
  1138. - Transformer: a neural network architecture for language understanding on WMT 2014 English-German dataset.
  1139. - GCN:Graph Convolutional Networks for the task of classification of nodes in a graph on Cora and Citeseer datasets.
  1140. - GAT:an attention-based graph neural network for node classification on Cora and CiteSeer dataset.
  1141. - Frontend and user interface
  1142. - Support tensor value and assignment of mixed tensor index in graph mode.
  1143. - Support tensor comparison, len operator, constexpr syntax, value and assignment of tensor index in pynative mode.
  1144. - Support converting MindSpore IR to pb format for infer model.
  1145. - Support print operator to write data directly on the hard disk.
  1146. - Add the double recursive programming solution for very high speed parallel strategy search in automatic parallel.
  1147. - User interfaces change log
  1148. - Allow the learning rate of AdamWeightDecayDynamicLR and Lamb to be 0([!1826](https://gitee.com/mindspore/mindspore/pulls/1826))
  1149. - Restricting the entire network input parameter is Tensor([!1967](https://gitee.com/mindspore/mindspore/pulls/1967))
  1150. - Turn shape and dtype into attributes instead of interfaces([!1919](https://gitee.com/mindspore/mindspore/pulls/1919))
  1151. - Delete multitypefungraph([!2116](https://gitee.com/mindspore/mindspore/pulls/2116))
  1152. - Refactor the callback module in an encapsulated way, use _CallbackManager instead of_build_callbacks([!2236](https://gitee.com/mindspore/mindspore/pulls/2236))
  1153. - Delete EmbeddingLookup([!2163](https://gitee.com/mindspore/mindspore/pulls/2163))
  1154. - Checkpoint add model_type([!2517](https://gitee.com/mindspore/mindspore/pulls/2517))
  1155. - Executor and performance optimization
  1156. - Heterogeneous execution on CPU and Ascend devices supported, and is verified in Wide&Deep model.
  1157. - Quantitative training of MobileNetV2, Lenet and Resnet50 on Ascend-910 are supported.
  1158. - Support new fusion architecture, which can do fusion optimization across graphs and kernels to improve execution speed.
  1159. - Data processing, augmentation, and save format
  1160. - Support data processing pipeline performance profiling.
  1161. - Support public dataset loading, such as CLUE and Coco.
  1162. - Support more text processing, such as more tokenizers and vocab data.
  1163. - Support MindRecord padded data.
  1164. ### Other Hardware Support
  1165. - GPU platform
  1166. - New model supported: Bert / Wide&Deep.
  1167. - Support setting max device memory.
  1168. - CPU platform
  1169. - New model supported: LSTM.
  1170. ## Bugfixes
  1171. - Models
  1172. - Bert, Move Bert from `example` to `model_zoo`, optimize network for better performance. ([!1902](https://gitee.com/mindspore/mindspore/pulls/1902))
  1173. - VGG16, Move VGG16 from `example` to `model_zoo`, optimize network for better accuracy. ([!2645](https://gitee.com/mindspore/mindspore/pulls/2645))
  1174. - Alexnet, modify parameter setting to improve accuracy ([!1364](https://gitee.com/mindspore/mindspore/pulls/2370))
  1175. - Wide&Deep, Move Wide&Deep from `example` to `model_zoo`, optimize network for better performance. ([!2221](https://gitee.com/mindspore/mindspore/pulls/2221))
  1176. - Python API
  1177. - Fix bug in auto cast([!1766](https://gitee.com/mindspore/mindspore/pulls/1766))
  1178. - Fix bug of register_backward_hook([!2148](https://gitee.com/mindspore/mindspore/pulls/2148))
  1179. - Fix bug of tuple args in pynative mode([!1878](https://gitee.com/mindspore/mindspore/pulls/1878))
  1180. - Fix bug of checking numbers of arguments and graph parameters([!1701](https://gitee.com/mindspore/mindspore/pulls/1701))
  1181. - Executor
  1182. - Fix bug of loading input data repeatedly in pynative mode([!1966](https://gitee.com/mindspore/mindspore/pulls/1966))
  1183. - Fix bug of list cannot be used as input in pynative mode([!1765](https://gitee.com/mindspore/mindspore/pulls/1765))
  1184. - Fix bug of kernel select ([!2103](https://gitee.com/mindspore/mindspore/pulls/2103))
  1185. - Fix bug of pattern matching for batchnorm fusion in the case of auto mix precision.([!1851](https://gitee.com/mindspore/mindspore/pulls/1851))
  1186. - Fix bug of generate hccl's kernel info.([!2393](https://gitee.com/mindspore/mindspore/pulls/2393))
  1187. - GPU platform
  1188. - Fix bug of summary feature invalid([!2173](https://gitee.com/mindspore/mindspore/pulls/2173))
  1189. - Data processing
  1190. - Fix bug of Cifar dataset reading([!2096](https://gitee.com/mindspore/mindspore/pulls/2096))
  1191. - Fix bug of C++ behavior in RandomCropAndResize([!2026](https://gitee.com/mindspore/mindspore/pulls/2026))
  1192. - Fix the bug of mindrecord shuffle([!2420](https://gitee.com/mindspore/mindspore/pulls/2420))
  1193. - Third party
  1194. - 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).
  1195. ## Contributors
  1196. Thanks goes to these wonderful people:
  1197. 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
  1198. Contributions of any kind are welcome!
  1199. # MindSpore 0.3.1-alpha Release Notes
  1200. ## Major Features and Improvements
  1201. ### Ascend 910 Training and Inference Framework
  1202. - Frontend and User Interface
  1203. - Independent model init interface.
  1204. - Data processing, augmentation, and save format
  1205. - Support sample padding for minddataset.
  1206. ## Bugfixes
  1207. - Python API
  1208. - Fix bugs in the lars optimizer([!1894](https://gitee.com/mindspore/mindspore/pulls/1894))
  1209. - Data processing
  1210. - Fix accuracy problem of RandomCropDecodeResize ([!2340](https://gitee.com/mindspore/mindspore/pulls/2340))
  1211. # Release 0.3.0-alpha
  1212. ## Major Features and Improvements
  1213. ### Ascend 910 Training and Inference Framework
  1214. - New models
  1215. - DeepFM: a factorization-machine based neural network for CTR prediction on Criteo dataset.
  1216. - 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.
  1217. - Faster-RCNN: towards real-time object detection with region proposal networks on COCO 2017 dataset.
  1218. - SSD: a single stage object detection methods on COCO 2017 dataset.
  1219. - GoogLeNet: a deep convolutional neural network architecture codenamed Inception V1 for classification and detection on CIFAR-10 dataset.
  1220. - Wide&Deep: jointly trained wide linear models and deep neural networks for recommender systems on Criteo dataset.
  1221. - Frontend and User Interface
  1222. - Complete numpy advanced indexing method. Supports value and assignment through tensor index.
  1223. - Some optimizers support separating parameter groups. Different parameter groups can set different `learning_rate` and `weight_decay`.
  1224. - 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.
  1225. - Support weights to be compiled according to shape to solve the problem of large memory overhead.
  1226. - Add some operators implement and grammar support in pynative mode. To be consistent with graph mode.
  1227. - User interfaces change log
  1228. - Learning rate and weight decay making group params([!637](https://gitee.com/mindspore/mindspore/pulls/637))
  1229. - Support weights to be compiled according to shape([!1015](https://gitee.com/mindspore/mindspore/pulls/1015))
  1230. - delete some context param([!1100](https://gitee.com/mindspore/mindspore/pulls/1100))
  1231. - ImageSummary/ScalarSummary/TensorSummary/HistogramSummary([!1329](https://gitee.com/mindspore/mindspore/pulls/1329))([!1425](https://gitee.com/mindspore/mindspore/pulls/1425))
  1232. - Executor and Performance Optimization
  1233. - Support doing evaluation while in training process, so that the accuracy of training can be easily obtained.
  1234. - Enable second-order optimization for resnet50, which can achieve 75.9% accuracy in 45 epochs (Resnet50 @ImageNet).
  1235. - Optimize pynative implementation and improve it's execution performance.
  1236. - Optimize summary record implementation and improve its performance.
  1237. - Data processing, augmentation, and save format
  1238. - Support simple text processing, such as tokenizer/buildvocab/lookup.
  1239. - Support padding batch.
  1240. - Support split or concat dataset.
  1241. - Support MindDataset reading from file list.
  1242. ### Other Hardware Support
  1243. - GPU platform
  1244. - New models supported: MobileNetV2, MobileNetV3.
  1245. - Support mixed precision training.
  1246. - Support device memory swapping.
  1247. ## Bugfixes
  1248. - Python API
  1249. - An exception to the broadcast input data type check([!712](https://gitee.com/mindspore/mindspore/pulls/712))
  1250. - Fix issues assignsub return value 0([!1036](https://gitee.com/mindspore/mindspore/pulls/1036))
  1251. - Fix issue Conv2dBackpropInput bprop should return 3 instead of 2 items([!1001](https://gitee.com/mindspore/mindspore/pulls/1001))
  1252. - Fix sens shape error of TrainOneStepWithLossScaleCell([!1050](https://gitee.com/mindspore/mindspore/pulls/1050))
  1253. - Fix BatchNormGrad operator([!1344](https://gitee.com/mindspore/mindspore/pulls/1344))
  1254. - Executor
  1255. - 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)).
  1256. - Fix memory leaks after execution in PyNatvie mode ([!1201](https://gitee.com/mindspore/mindspore/pulls/1201)).
  1257. - Fix HCCL failure in some special scenes ([!1204](https://gitee.com/mindspore/mindspore/pulls/1204), [!1252](https://gitee.com/mindspore/mindspore/pulls/1252)).
  1258. - Fix SSD network when Select failed, can't find kernel info([!1449](https://gitee.com/mindspore/mindspore/pulls/1449)).
  1259. - Fix Topk operator selection strategy bug between aicore and aicpu([!1367](https://gitee.com/mindspore/mindspore/pulls/1367)).
  1260. - 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)).
  1261. - Fix allreduce ir inconsistency([!989](https://gitee.com/mindspore/mindspore/pulls/989)).
  1262. - GPU platform
  1263. - Fix summary for gradient collection ([!1364](https://gitee.com/mindspore/mindspore/pulls/1364))
  1264. - Fix the slice operator ([!1489](https://gitee.com/mindspore/mindspore/pulls/1489))
  1265. - Data processing
  1266. - Fix memory problems of GeneratorDataset of sub-process ([!907](https://gitee.com/mindspore/mindspore/pulls/907))
  1267. - Fix getting data timeout when training the cifar10 dataset under the lenet([!1391](https://gitee.com/mindspore/mindspore/pulls/1391))
  1268. ## Contributors
  1269. Thanks goes to these wonderful people:
  1270. 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
  1271. Contributions of any kind are welcome!
  1272. # MindSpore 0.2.0-alpha Release Notes
  1273. ## Major Features and Improvements
  1274. ### Ascend 910 Training and Inference Framework
  1275. - New models
  1276. - MobileNetV2: Inverted Residuals and Linear Bottlenecks.
  1277. - ResNet101: Deep Residual Learning for Image Recognition.
  1278. - Frontend and User Interface
  1279. - Support for all python comparison operators.
  1280. - Support for math operators **,//,%. Support for other python operators like and/or/not/is/is not/ in/ not in.
  1281. - Support for the gradients of function with variable arguments.
  1282. - Support for tensor indexing assignment for certain indexing type.
  1283. - Support for dynamic learning rate.
  1284. - User interfaces change log
  1285. - DepthwiseConv2dNative, DepthwiseConv2dNativeBackpropFilter, DepthwiseConv2dNativeBackpropInput([!424](https://gitee.com/mindspore/mindspore/pulls/424))
  1286. - ReLU6, ReLU6Grad([!224](https://gitee.com/mindspore/mindspore/pulls/224))
  1287. - GeneratorDataset([!183](https://gitee.com/mindspore/mindspore/pulls/183))
  1288. - VOCDataset([!477](https://gitee.com/mindspore/mindspore/pulls/477))
  1289. - MindDataset, PKSampler([!514](https://gitee.com/mindspore/mindspore/pulls/514))
  1290. - map([!506](https://gitee.com/mindspore/mindspore/pulls/506))
  1291. - Conv([!226](https://gitee.com/mindspore/mindspore/pulls/226))
  1292. - Adam([!253](https://gitee.com/mindspore/mindspore/pulls/253))
  1293. - _set_fusion_strategy_by_idx,_set_fusion_strategy_by_size([!189](https://gitee.com/mindspore/mindspore/pulls/189))
  1294. - CheckpointConfig([!122](https://gitee.com/mindspore/mindspore/pulls/122))
  1295. - Constant([!54](https://gitee.com/mindspore/mindspore/pulls/54))
  1296. - Executor and Performance Optimization
  1297. - Support parallel execution of data prefetching and forward/backward computing.
  1298. - Support parallel execution of gradient aggregation and forward/backward computing in distributed training scenarios.
  1299. - Support operator fusion optimization.
  1300. - Optimize compilation process and improve the performance.
  1301. - Data processing, augmentation, and save format
  1302. - Support multi-process of GeneratorDataset/PyFunc for high performance
  1303. - Support variable batchsize
  1304. - Support new Dataset operators, such as filter,skip,take,TextLineDataset
  1305. ### Other Hardware Support
  1306. - GPU platform
  1307. - Use dynamic memory pool by default on GPU.
  1308. - Support parallel execution of computation and communication.
  1309. - Support continuous address allocation by memory pool.
  1310. - CPU platform
  1311. - Support for windows 10 OS.
  1312. ## Bugfixes
  1313. - Models
  1314. - Fix mixed precision bug for VGG16 model ([!629](https://gitee.com/mindspore/mindspore/pulls/629)).
  1315. - Python API
  1316. - Fix ControlDepend operator bugs on CPU and GPU ([!396](https://gitee.com/mindspore/mindspore/pulls/396)).
  1317. - Fix ArgMinWithValue operator bugs ([!338](https://gitee.com/mindspore/mindspore/pulls/338)).
  1318. - Fix Dense operator bugs on PyNative mode ([!276](https://gitee.com/mindspore/mindspore/pulls/276)).
  1319. - Fix MatMul operator bugs on PyNative mode ([!288](https://gitee.com/mindspore/mindspore/pulls/288)).
  1320. - Executor
  1321. - Fix operator selection bugs and make it general ([!300](https://gitee.com/mindspore/mindspore/pulls/300)).
  1322. - Fix memory reuse bug for GetNext op ([!291](https://gitee.com/mindspore/mindspore/pulls/291)).
  1323. - GPU platform
  1324. - Fix memory allocation in multi-graph scenarios ([!444](https://gitee.com/mindspore/mindspore/pulls/444)).
  1325. - Fix bias_add_grad under fp16 precision ([!598](https://gitee.com/mindspore/mindspore/pulls/598)).
  1326. - Fix support for fp16 kernels on nvidia 1080Ti([!571](https://gitee.com/mindspore/mindspore/pulls/571)).
  1327. - Fix parsing of tuple type parameters ([!316](https://gitee.com/mindspore/mindspore/pulls/316)).
  1328. - Data processing
  1329. - Fix TypeErrors about can't pickle mindspore._c_dataengine.DEPipeline objects([!434](https://gitee.com/mindspore/mindspore/pulls/434)).
  1330. - Add TFRecord file verification([!406](https://gitee.com/mindspore/mindspore/pulls/406)).
  1331. ## Contributors
  1332. Thanks goes to these wonderful people:
  1333. 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.
  1334. Contributions of any kind are welcome!
  1335. # MindSpore 0.1.0-alpha Release Notes
  1336. ## Main Features
  1337. ### Ascend 910 Training and Inference Framework
  1338. - Recommended OS: Ubuntu 16.04 (or later) or EulerOS 2.5 or EulerOS 2.8
  1339. - Python version: 3.7.5
  1340. - Preset models
  1341. - ResNet-50: residual structure-based convolutional neural network (CNN) for image classification, which is widely used.
  1342. - AlexNet: classic CNN for image classification, achieving historical results in ImageNet LSVRC-2012.
  1343. - LeNet: classic CNN for image classification, which was proposed by Yann LeCun.
  1344. - VGG16: classic CNN for image classification, which was proposed by Oxford Visual Geometry Group.
  1345. - YoloV3: real-time object detection network.
  1346. - NEZHA: BERT-based Chinese pre-training network produced by Huawei Noah's Ark Laboratory.
  1347. - Execution modes
  1348. - Graph mode: provides graph optimization methods such as memory overcommitment, IR fusion, and buffer fusion to achieve optimal execution performance.
  1349. - PyNative mode: single-step execution mode, facilitating process debugging.
  1350. - Debugging capability and methods
  1351. - Save CheckPoints and Summary data during training.
  1352. - Support asynchronous printing.
  1353. - Dump the computing data.
  1354. - Support profiling analysis of the execution process performance.
  1355. - Distributed execution
  1356. - Support AllReduce, AllGather, and BroadCast collective communication.
  1357. - AllReduce data parallel: Each device obtains different training data, which accelerates the overall training process.
  1358. - 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.
  1359. - 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.
  1360. - Automatic differentiation
  1361. - Implement automatic differentiation based on Source to Source.
  1362. - Support distributed scenarios and automatic insertion of reverse communication operators.
  1363. - Data processing, augmentation, and save format
  1364. - Load common datasets such as ImageNet, MNIST, CIFAR-10, and CIFAR-100.
  1365. - Support common data loading pipeline operations, such as shuffle, repeat, batch, map, and sampler.
  1366. - Provide basic operator libraries to cover common CV scenarios.
  1367. - Support users to customize Python data augmentation operators through the Pyfunc mechanism.
  1368. - Support the access of user-defined datasets through the GeneratorDataset mechanism.
  1369. - Provide the MindSpore data format, data aggregation and storage, random access example, data partition, efficient parallel read, user-defined index, and dataset search.
  1370. - Convert user datasets to the MindSpore data format.
  1371. - After data processing and augmentation, provide training applications in feed and graph modes.
  1372. - FP32/16 mixed precision computation, supporting automatic and manual configuration
  1373. - Provide common operators such as nn, math, and array, which can be customized.
  1374. ### Inference Deployment
  1375. - Deploy models in MindSpore format on the Ascend 310 platform for inference.
  1376. - Save models in ONNX format.
  1377. - Support saving models in LITE format and running models based on the lightweight inference framework.
  1378. - Recommended OS: Android 4.3 or later
  1379. - Supported network type: LeNet
  1380. - Provide the generalization operators generated by TVM and operators generated after specific networks are tuned.
  1381. ### Other Hardware Support
  1382. - GPU platform training
  1383. - Recommended OS: Ubuntu 16.04
  1384. - CUDA version: 9.2 or 10.1
  1385. - CuDNN version: 7.6 or later
  1386. - Python version: 3.7.5
  1387. - NCCL version: 2.4.8-1
  1388. - OpenMPI version: 3.1.5
  1389. - Supported models: AlexNet, LeNet, and LSTM
  1390. - Supported datasets: MNIST and CIFAR-10
  1391. - Support data parallel.
  1392. - CPU platform training
  1393. - Recommended OS: Ubuntu 16.04
  1394. - Python version: 3.7.5
  1395. - Supported model: LeNet
  1396. - Supported dataset: MNIST
  1397. - Provide only the stand-alone operation version.
  1398. ## Peripherals and Tools
  1399. - [MindSpore Official Website](https://www.mindspore.cn/)
  1400. - [MindInsight Visualization Debugging and Optimization](https://gitee.com/mindspore/mindinsight)
  1401. - [MindArmour Model Security Hardening Package](https://gitee.com/mindspore/mindarmour)
  1402. - [GraphEngine Computational Graph Engine](https://gitee.com/mindspore/graphengine)