Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
fix a bug in AddCheckpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
PeizeSun committed Jan 15, 2019
1 parent c762d55 commit fdd1d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CIFAR10_Part1.ipynb
Expand Up @@ -622,8 +622,8 @@
"\n",
"# Add checkpoints to a given model\n",
"def AddCheckpoints(model, checkpoint_iters, db_type):\n",
" ITER = brew.iter(train_model, \"iter\")\n",
" train_model.Checkpoint([ITER] + train_model.params, [], db=os.path.join(unique_timestamp, \"cifar10_checkpoint_%05d.lmdb\"), db_type=\"lmdb\", every=checkpoint_iters)"
" ITER = brew.iter(model, \"iter\")\n",
" model.Checkpoint([ITER] + model.params, [], db=os.path.join(unique_timestamp, \"cifar10_checkpoint_%05d.lmdb\"), db_type=\"lmdb\", every=checkpoint_iters)"
]
},
{
Expand Down

0 comments on commit fdd1d4f

Please sign in to comment.