From 62dc91370cba1c8f7fc20b9b270c49ca82dd4efd Mon Sep 17 00:00:00 2001 From: sametucuncu <45235728+sametucuncu@users.noreply.github.com> Date: Wed, 23 Apr 2025 11:56:57 +0100 Subject: [PATCH] Fix typo --- lab2/PT_Part1_MNIST.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab2/PT_Part1_MNIST.ipynb b/lab2/PT_Part1_MNIST.ipynb index bcfae490..ec75379d 100644 --- a/lab2/PT_Part1_MNIST.ipynb +++ b/lab2/PT_Part1_MNIST.ipynb @@ -418,12 +418,12 @@ " images, labels = images.to(device), labels.to(device)\n", "\n", " # Forward pass\n", - " outputs = fc_model(images)\n", + " outputs = model(images)\n", "\n", " # Clear gradients before performing backward pass\n", " optimizer.zero_grad()\n", " # Calculate loss based on model predictions\n", - " loss = loss_function(outputs, labels)\n", + " loss = criterion(outputs, labels)\n", " # Backpropagate and update model parameters\n", " loss.backward()\n", " optimizer.step()\n",