diff --git a/RELEASE.md b/RELEASE.md index 5f30421b02e..8221a39ff12 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -167,6 +167,19 @@ - TimeMonitor printing content changes, and the printed content is added to "train" or "eval" to distinguish between training and inference phases. - `filter_prefix` of `mindspore.load_checkpoint` interface: empty string ("") is no longer supported, and the matching rules are changed from strong matching to fuzzy matching. +#### Import Optimization + +APIs in `mindspore.context`, `mindspore.parallel`, `mindspore.profiler` and `mindspore.train` can be directly used in `mindspore`. The original usage can still be supported. + +For examples: + +-`mindspore.context.set_context` can be simplified to `mindspore.set_context`. +-`mindspore.parallel.set_algo_parameters` can be simplified to `mindspore.set_algo_parameters`. +-`mindspore.profiler.Profiler` can be simplified to `mindspore.Profiler`. +-`mindspore.train.callback.Callback` can be simplified to `mindspore.Callback`. + +The API pages are aggregated to . + ## MindSpore Lite ### Major Features and Improvements diff --git a/RELEASE_CN.md b/RELEASE_CN.md index db5289a2a9a..f0d503c7a24 100644 --- a/RELEASE_CN.md +++ b/RELEASE_CN.md @@ -167,6 +167,19 @@ - TimeMonitor打印内容变更,打印内容加入"train"或"eval"用于区分训练和推理阶段。 - load_checkpoint 接口的`filter_prefix`:不再支持空字符串(""),匹配规则由强匹配修改为模糊匹配。 +#### import优化 + +mindspore.context、mindspore.parallel、mindspore.profiler、mindspore.train模块的接口可直接在mindspore模块使用。原有用法仍可以继续支持。 + +例如: + +-`mindspore.context.set_context`可简化为`mindspore.set_context`。 +-`mindspore.parallel.set_algo_parameters`可简化为`mindspore.set_algo_parameters`。 +-`mindspore.profiler.Profiler`可简化为`mindspore.Profiler`。 +-`mindspore.train.callback.Callback`可简化为`mindspore.Callback`。 + +API页面统一汇总至:。 + ## MindSpore Lite ### 主要特性和增强