Skip to content

Commit c2fbb3e

Browse files
committed
update local copy
2 parents 9c832e9 + 139e8b9 commit c2fbb3e

4 files changed

+21
-65
lines changed

intro-to-pytorch/Part 1 - Tensors in PyTorch (Exercises).ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
"cell_type": "markdown",
250250
"metadata": {},
251251
"source": [
252-
"If you did this correctly, you should see the output `tensor([[ 0.4813]])`.\n",
252+
"If you did this correctly, you should see the output `tensor([[ 0.3171]])`.\n",
253253
"\n",
254254
"The number of hidden units a parameter of the network, often called a **hyperparameter** to differentiate it from the weights and biases parameters. As you'll see later when we discuss training a neural network, the more hidden units a network has, and the more layers, the better able it is to learn from data and make accurate predictions."
255255
]

intro-to-pytorch/Part 1 - Tensors in PyTorch (Solution).ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
},
7171
{
7272
"cell_type": "code",
73-
"execution_count": 17,
73+
"execution_count": 2,
7474
"metadata": {},
7575
"outputs": [],
7676
"source": [
@@ -86,7 +86,7 @@
8686
},
8787
{
8888
"cell_type": "code",
89-
"execution_count": 49,
89+
"execution_count": 3,
9090
"metadata": {},
9191
"outputs": [],
9292
"source": [
@@ -119,7 +119,7 @@
119119
},
120120
{
121121
"cell_type": "code",
122-
"execution_count": 50,
122+
"execution_count": 4,
123123
"metadata": {},
124124
"outputs": [],
125125
"source": [
@@ -167,7 +167,7 @@
167167
},
168168
{
169169
"cell_type": "code",
170-
"execution_count": 51,
170+
"execution_count": 5,
171171
"metadata": {},
172172
"outputs": [],
173173
"source": [
@@ -211,7 +211,7 @@
211211
},
212212
{
213213
"cell_type": "code",
214-
"execution_count": 52,
214+
"execution_count": 6,
215215
"metadata": {},
216216
"outputs": [],
217217
"source": [
@@ -245,30 +245,30 @@
245245
},
246246
{
247247
"cell_type": "code",
248-
"execution_count": 55,
248+
"execution_count": 7,
249249
"metadata": {},
250250
"outputs": [
251251
{
252252
"name": "stdout",
253253
"output_type": "stream",
254254
"text": [
255-
"tensor([[ 0.4813]])\n"
255+
"tensor([[ 0.3171]])\n"
256256
]
257257
}
258258
],
259259
"source": [
260260
"### Solution\n",
261261
"\n",
262-
"h = activation(torch.mm(features, W1)) + B1\n",
263-
"output = activation(torch.mm(h, W2)) + B2\n",
262+
"h = activation(torch.mm(features, W1) + B1)\n",
263+
"output = activation(torch.mm(h, W2) + B2)\n",
264264
"print(output)"
265265
]
266266
},
267267
{
268268
"cell_type": "markdown",
269269
"metadata": {},
270270
"source": [
271-
"If you did this correctly, you should see the output `tensor([[ 0.4813]])`.\n",
271+
"If you did this correctly, you should see the output `tensor([[ 0.3171]])`.\n",
272272
"\n",
273273
"The number of hidden units a parameter of the network, often called a **hyperparameter** to differentiate it from the weights and biases parameters. As you'll see later when we discuss training a neural network, the more hidden units a network has, and the more layers, the better able it is to learn from data and make accurate predictions."
274274
]

intro-to-pytorch/Part 7 - Loading Image Data (Exercises).ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"\n",
136136
"```python\n",
137137
"train_transforms = transforms.Compose([transforms.RandomRotation(30),\n",
138-
" transforms.RandomResizedCrop(100),\n",
138+
" transforms.RandomResizedCrop(224),\n",
139139
" transforms.RandomHorizontalFlip(),\n",
140140
" transforms.ToTensor(),\n",
141141
" transforms.Normalize([0.5, 0.5, 0.5], \n",

intro-to-pytorch/Part 7 - Loading Image Data (Solution).ipynb

Lines changed: 9 additions & 53 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)