From d91bf52e09ce34cbcadd8683f7146f1e52128e67 Mon Sep 17 00:00:00 2001 From: sl_wang Date: Mon, 28 Jun 2021 19:43:17 +0800 Subject: [PATCH] adjust format of api --- mindspore/train/train_thor/convert_utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mindspore/train/train_thor/convert_utils.py b/mindspore/train/train_thor/convert_utils.py index 9c8d20da0e2..982ba7af638 100644 --- a/mindspore/train/train_thor/convert_utils.py +++ b/mindspore/train/train_thor/convert_utils.py @@ -133,14 +133,15 @@ class ConvertNetUtils(): This interface is used to convert a network to thor layer network, in order to calculate and store the second-order information matrix. - Notes: - This interface is automatically called by the second-order optimizer thor. + Note: + This interface is automatically called by the second-order optimizer thor. Args: - net (Cell): network to be trained by the second-order optimizer thor. + net (Cell): Network to be trained by the second-order optimizer thor. Examples: - >>> ConvertNetUtils().convert_to_thor_net(net) + >>> ConvertNetUtils().convert_to_thor_net(net) + """ net.update_cell_prefix()