summaryrefslogtreecommitdiff
path: root/paramsaveload.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-03-08 20:21:28 +0100
committerAlex Auvolat <alex@adnab.me>2016-03-08 20:21:28 +0100
commitbb9ebdeee88409a209d1bcc04a374e4b7d7e13d2 (patch)
tree1fc4cbafe8e443e40101551a809f2473d10ba22a /paramsaveload.py
parent0cc79a9d41d3829a75e1d0f953d706e933e9d194 (diff)
downloadtext-rnn-bb9ebdeee88409a209d1bcc04a374e4b7d7e13d2.tar.gz
text-rnn-bb9ebdeee88409a209d1bcc04a374e4b7d7e13d2.zip
Fix IRC mode
Diffstat (limited to 'paramsaveload.py')
-rw-r--r--paramsaveload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramsaveload.py b/paramsaveload.py
index 9c05926..345cfbb 100644
--- a/paramsaveload.py
+++ b/paramsaveload.py
@@ -27,7 +27,7 @@ class SaveLoadParams(SimpleExtension):
logger.info('Loading parameters from %s...'%self.path)
self.model.set_parameter_values(cPickle.load(f))
except IOError:
- pass
+ logger.warn('No previous parameters found at %s...'%self.path)
def do(self, which_callback, *args):
if which_callback == 'before_training':