From 1109ba19a34b150358317e36e665c8fcd8621fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BA=9A=E4=BA=91?= <563880696@qq.com> Date: Mon, 13 Jul 2020 13:48:54 +0800 Subject: [PATCH] Edit by browser --- MindSpore/src/step1/net.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/MindSpore/src/step1/net.py b/MindSpore/src/step1/net.py index 66b3da3..fe40a14 100644 --- a/MindSpore/src/step1/net.py +++ b/MindSpore/src/step1/net.py @@ -1,4 +1,3 @@ - import mindspore.nn as nn from mindspore.common.initializer import TruncatedNormal @@ -22,16 +21,16 @@ def fc_with_initialize(input_channels, out_channels): fc layer weight initial """ # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:完成初始化代码 + #********** Begin *********# + ## 提示:完成初始化代码 - # **********End**********# + #********** End **********# class LeNet5(nn.Cell): """ Lenet network structure """ - #define the operator required + # define the operator required def __init__(self): super(LeNet5, self).__init__() self.conv1 = conv(1, 6, 5) @@ -46,8 +45,8 @@ class LeNet5(nn.Cell): #use the preceding operators to construct networks def construct(self, x): # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:根据教程内容完成网络定义即可 + #********** Begin *********# + ## 提示:根据教程内容完成网络定义即可 - # **********End**********# + #********** End **********# return x