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

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