From ed0573d069c544924fbfd3fc7847055d88925f74 Mon Sep 17 00:00:00 2001 From: winsty Date: Fri, 15 May 2015 12:56:54 +0800 Subject: [PATCH] Revert "fix finetune" This reverts commit 01a3c744a9db805f834fcd59cea18f47fe3fd272. --- example/MNIST/MNIST_CONV.conf | 2 +- src/cxxnet_main.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/example/MNIST/MNIST_CONV.conf b/example/MNIST/MNIST_CONV.conf index 014cd9b9..0e031894 100644 --- a/example/MNIST/MNIST_CONV.conf +++ b/example/MNIST/MNIST_CONV.conf @@ -45,7 +45,7 @@ batch_size = 100 ## global parameters dev = gpu -save_model = 1 +save_model = 15 max_round = 15 num_round = 15 train_eval = 1 diff --git a/src/cxxnet_main.cpp b/src/cxxnet_main.cpp index 8ab19af5..95df6e63 100644 --- a/src/cxxnet_main.cpp +++ b/src/cxxnet_main.cpp @@ -514,7 +514,6 @@ class CXXNetLearnTask { CHECK(fi->Read(&net_type, sizeof(int)) != 0) << " invalid model file"; net_trainer = this->CreateNet(); net_trainer->CopyModelFrom(*fi); - start_counter = 1; delete fi; } private: