Skip to content

Commit 2b1f85d

Browse files
committed
[DLMED] update according to comments
Signed-off-by: Nic Ma <[email protected]>
1 parent 4024ce2 commit 2b1f85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acceleration/fast_training_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
},
314314
{
315315
"cell_type": "code",
316-
"execution_count": 45,
316+
"execution_count": 6,
317317
"metadata": {
318318
"scrolled": true
319319
},
@@ -484,7 +484,7 @@
484484
" best_metrics_epochs_and_time[2].append(\n",
485485
" time.time() - total_start\n",
486486
" )\n",
487-
" torch.save(model.state_dict(), \"best_metric_model.pt\")\n",
487+
" torch.save(model.state_dict(), os.path.join(root_dir, \"best_metric_model.pt\"))\n",
488488
" print(\"saved new best metric model\")\n",
489489
" print(\n",
490490
" f\"current epoch: {epoch + 1} current\"\n",

0 commit comments

Comments
 (0)