From 28b876f20d4a37d76a7267fa97d14dbca96b1ba0 Mon Sep 17 00:00:00 2001 From: xumengjuan1 Date: Sat, 2 Apr 2022 10:35:46 +0800 Subject: [PATCH] modify doc --- docs/api/api_python/mindspore.boost.rst | 4 ++-- mindspore/python/mindspore/mindrecord/tools/tfrecord_to_mr.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/api_python/mindspore.boost.rst b/docs/api/api_python/mindspore.boost.rst index c81c2180b45..d9c7bfba57e 100644 --- a/docs/api/api_python/mindspore.boost.rst +++ b/docs/api/api_python/mindspore.boost.rst @@ -108,7 +108,7 @@ Boost能够自动加速网络,如减少BN/梯度冻结/累积梯度等。 其中: - - pca_mat (array): 维度(k*n),k是n_components的大小,n是权重的大小。 + - pca_mat (array): 维度(k*n),k是 *n_components* 的大小,n是权重的大小。 - bk (array): 维度(k*k),bk是拟牛顿法中的对称正定矩阵。 我们需要找到满足以下条件的m: @@ -116,7 +116,7 @@ Boost能够自动加速网络,如减少BN/梯度冻结/累积梯度等。 .. math:: new\_loss < old\_loss + delta\_loss - 然后使用delta_grad去更新模型的权重: + 然后使用 *delta_grad* 去更新模型的权重: .. math:: diff --git a/mindspore/python/mindspore/mindrecord/tools/tfrecord_to_mr.py b/mindspore/python/mindspore/mindrecord/tools/tfrecord_to_mr.py index 98f17b995cb..6245bb26093 100644 --- a/mindspore/python/mindspore/mindrecord/tools/tfrecord_to_mr.py +++ b/mindspore/python/mindspore/mindrecord/tools/tfrecord_to_mr.py @@ -75,7 +75,7 @@ class TFRecordToMR: source (str): TFRecord file to be transformed. destination (str): MindRecord file path to transform into, ensure that no file with the same name exists in the directory. - feature_dict (dict[str, `FixedLenFeature `_]): Dictionary + feature_dict (dict[str, `FixedLenFeature `_ ]): Dictionary that states the feature type, and `VarLenFeature `_ is not supported. bytes_fields (list[str], optional): The bytes fields which are in `feature_dict` and can be images bytes.