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

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