From f964efd99456da1fc70513552c1969dc9c83a238 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 14:30:01 +0800 Subject: [PATCH] Edit by browser --- MindSpore/src/step3/train_net.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MindSpore/src/step3/train_net.py b/MindSpore/src/step3/train_net.py index f317a34..d110086 100644 --- a/MindSpore/src/step3/train_net.py +++ b/MindSpore/src/step3/train_net.py @@ -157,10 +157,10 @@ def train_net(args, model, epoch_size, mnist_path, repeat_size, ckpoint_cb): print("============== Starting Training ==============") # load training dataset # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:完成网络的配置 + #********** Begin *********# + ## 提示:完成网络的配置 - # **********End**********# + #********** End **********# if __name__ == "__main__": parser = argparse.ArgumentParser(description='MindSpore LeNet Example') @@ -183,10 +183,10 @@ if __name__ == "__main__": # define the optimizer net_opt = nn.Momentum(network.trainable_params(), lr, momentum) # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:配置模型保存 + #********** Begin *********# + ## 提示:配置模型保存 - # **********End**********# + #********** End **********# # group layers into an object with training and evaluation features model = Model(network, net_loss, net_opt, metrics={"Accuracy": Accuracy()})