Skip to content

Commit

Permalink
Updated log_model reference to match torch.save. (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
travis-the-dragon authored Aug 9, 2024
1 parent 02ac9b7 commit 1d63750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colabs/intro/Intro_to_Weights_&_Biases.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
"\n",
" # 🐝 Save the model checkpoint to wandb\n",
" torch.save(model, \"my_model.pt\")\n",
" wandb.log_model(\"./mnist_model.pt\", \"my_mnist_model\", aliases=[f\"epoch-{epoch+1}_dropout-{round(wandb.config.dropout, 4)}\"])\n",
" wandb.log_model(\"./my_model.pt\", \"my_mnist_model\", aliases=[f\"epoch-{epoch+1}_dropout-{round(wandb.config.dropout, 4)}\"])\n",
"\n",
" print(f\"Epoch: {epoch+1}, Train Loss: {train_loss:.3f}, Valid Loss: {val_loss:3f}, Accuracy: {accuracy:.2f}\")\n",
"\n",
Expand Down

0 comments on commit 1d63750

Please sign in to comment.