Skip to content

Commit 729a6f3

Browse files
authored
Fix dimensions in week08 homework (#23)
1 parent 4ccae69 commit 729a6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

week08_inference_software/homework.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
"metadata": {},
359359
"outputs": [],
360360
"source": [
361-
"input_shape = 1, 32, 64, 64\n",
361+
"input_shape = (1, 32, 64, 64)\n",
362362
"num_groups = 8\n",
363363
"test_group_norm(input_shape, num_groups, torch.float16)"
364364
]
@@ -380,8 +380,8 @@
380380
"source": [
381381
"# You need to check your implementation for the following parameters\n",
382382
"batch_size = 2\n",
383-
"for image_resolution in [32, 128, 512, 1024, 2048, 4096]:\n",
384-
" for num_channels in [32, 128, 512, 1024]:\n",
383+
"for image_resolution in [32, 128, 512, 1024, 1536, 2048]:\n",
384+
" for num_channels in [32, 128, 386, 512]:\n",
385385
" for num_groups in [1, 4, 8, 16, 32]:\n",
386386
"\n",
387387
" dummy_input = torch.randn(batch_size, num_channels, image_resolution, image_resolution)\n",

0 commit comments

Comments
 (0)