Skip to content

Commit 7795700

Browse files
authored
Fix typos in TextCNN notebook (#3320)
1 parent 06fe8bd commit 7795700

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/notebooks/TextCNN.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
"batch_size = 8 # A batch size of 8\n",
427427
"\n",
428428
"def create_iterators(batch_size=8):\n",
429-
" \"\"\"Heler function to create the iterators\"\"\"\n",
429+
" \"\"\"Helper function to create the iterators\"\"\"\n",
430430
" dataloaders = []\n",
431431
" for split in [train_list, validation_list, test_list]:\n",
432432
" dataloader = DataLoader(\n",
@@ -695,7 +695,7 @@
695695
"Similar to the training process function, we set up a function to evaluate a single batch. Here is what the eval_function does:\n",
696696
"\n",
697697
"* Sets model in eval mode.\n",
698-
"* With torch.no_grad(), no gradients are calculated for any succeding steps.\n",
698+
"* With torch.no_grad(), no gradients are calculated for any succeeding steps.\n",
699699
"* Generates x and y from batch.\n",
700700
"* Performs a forward pass on the model to calculate y_pred based on model and x.\n",
701701
"* Returns y_pred and y.\n",
@@ -1002,4 +1002,4 @@
10021002
},
10031003
"nbformat": 4,
10041004
"nbformat_minor": 4
1005-
}
1005+
}

0 commit comments

Comments
 (0)