Skip to content

Commit

Permalink
GPT comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mlelarge committed Nov 24, 2023
1 parent 03ac132 commit 01a46ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Module12/GPT_hist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,6 @@
" optimizer.zero_grad()\n",
" loss.backward()\n",
" optimizer.step()\n",
" #\n",
" # complete the code below:\n",
" _,preds = torch.max(logits,-1)\n",
" \n",
" running_corrects += torch.true_divide(torch.sum(preds == targets.data),targets.shape[0]*targets.shape[1])\n",
Expand Down Expand Up @@ -760,7 +758,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
"version": "3.8.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 01a46ca

Please sign in to comment.