From: Francois Fleuret Date: Fri, 16 Jun 2017 06:30:15 +0000 (+0200) Subject: Ooops. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=08ef6b7c332153cd72b7a225e27ee7af8882f313;p=pysvrt.git Ooops. --- diff --git a/cnn-svrt.py b/cnn-svrt.py index 6645ac1..7bef242 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -171,15 +171,15 @@ for arg in vars(args): for problem_number in range(1, 24): - model_filename = model.name + '_' + \ - str(problem_number) + '_' + \ - str(args.nb_train_batches) + '.param' - model = AfrozeShallowNet() if torch.cuda.is_available(): model.cuda() + model_filename = model.name + '_' + \ + str(problem_number) + '_' + \ + str(args.nb_train_batches) + '.param' + nb_parameters = 0 for p in model.parameters(): nb_parameters += p.numel() log_string('nb_parameters {:d}'.format(nb_parameters))