Skip to content

Commit 8817de6

Browse files
committed
fix: removed softmax in random code.
1 parent 792fdab commit 8817de6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

random_code.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,15 +588,15 @@
588588
},
589589
{
590590
"cell_type": "code",
591-
"execution_count": 10,
591+
"execution_count": null,
592592
"id": "835b3357-3368-4944-9411-c10d3a507236",
593593
"metadata": {},
594594
"outputs": [],
595595
"source": [
596596
"# Define the linear classifier model\n",
597597
"model = torch.nn.Sequential(\n",
598598
" torch.nn.Linear(in_features=4, out_features=3),\n",
599-
" torch.nn.Softmax(dim=1)\n",
599+
" # torch.nn.Softmax(dim=1) # softmax already applied with crossentropy loss in pytorch\n",
600600
")"
601601
]
602602
},

0 commit comments

Comments
 (0)