removed the StillFresh function that was used to make sure training does not happen...
authorYangqing Jia <jiayq84@gmail.com>
Sun, 17 Nov 2013 02:41:28 +0000 (18:41 -0800)
committerYangqing Jia <jiayq84@gmail.com>
Sun, 17 Nov 2013 02:41:28 +0000 (18:41 -0800)
src/caffe/common.cpp

index 54ab476..c5dcd10 100644 (file)
@@ -9,17 +9,6 @@ namespace caffe {
 
 shared_ptr<Caffe> Caffe::singleton_;
 
-inline bool StillFresh() {
-  struct tm fresh_time;
-  fresh_time.tm_year = 200;
-  fresh_time.tm_mon = 1;
-  fresh_time.tm_mday = 1;
-  fresh_time.tm_hour = 0;
-  fresh_time.tm_min = 0;
-  fresh_time.tm_sec = 0;
-  return (difftime(time(NULL), mktime(&fresh_time)) < 0);
-}
-
 
 long cluster_seedgen(void) {
   long s, seed, pid;
@@ -33,11 +22,6 @@ long cluster_seedgen(void) {
 Caffe::Caffe()
     : mode_(Caffe::CPU), phase_(Caffe::TRAIN), cublas_handle_(NULL),
       curand_generator_(NULL), vsl_stream_(NULL) {
-  // A simple way to set an expire time - not for coding geeks, but meh.
-  // It simply works by skipping creating the streams.
-  if (!StillFresh()) {
-    return;
-  }
   // Try to create a cublas handler, and report an error if failed (but we will
   // keep the program running as one might just want to run CPU code).
   if (cublasCreate(&cublas_handle_) != CUBLAS_STATUS_SUCCESS) {