mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
remove redundant assignment (#961)
This commit is contained in:
committed by
GitHub
parent
2d600ccb5b
commit
1ed48c2450
@@ -1168,7 +1168,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"def compute_accuracy(model, dataloader):\n",
|
"def compute_accuracy(model, dataloader):\n",
|
||||||
"\n",
|
"\n",
|
||||||
" model = model.eval()\n",
|
" model.eval()\n",
|
||||||
" correct = 0.0\n",
|
" correct = 0.0\n",
|
||||||
" total_examples = 0\n",
|
" total_examples = 0\n",
|
||||||
" \n",
|
" \n",
|
||||||
@@ -1340,7 +1340,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.11"
|
"version": "3.13.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user