From 45273fb1176a837f1dadf13900d21c4106521a5e 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:55:06 +0800 Subject: [PATCH] Edit by browser --- MindSpore/src/step2/step2.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MindSpore/src/step2/step2.py b/MindSpore/src/step2/step2.py index 332b721..98a167d 100644 --- a/MindSpore/src/step2/step2.py +++ b/MindSpore/src/step2/step2.py @@ -12,19 +12,20 @@ if __name__ == "__main__": epoch_size = 1 mnist_path = "./MNIST_Data" # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:补全损失函数的定义 + #********** Begin *********# + ## 提示:补全损失函数的定义 - # **********End**********# + #********** End **********# repeat_size = epoch_size # create the network network = LeNet5() # define the optimizer # 请在此添加代码完成本关任务 - # **********Begin*********# - ##提示:补全优化器的定义 + #********** Begin *********# + ## 提示:补全优化器的定义 - # **********End**********# + + #********** End **********# # save the network model and parameters for subsequence fine-tuning ckpoint_cb = ModelCheckpoint(prefix="checkpoint_lenet", config=config_ck)