deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

Second Ed (p 272): Listing 9.19: invalid syntax due to dangling code

Open 9nut opened this issue 2 years ago • 0 comments

The listing in the book looks something like this:

for i in range(n):
 for j in range(n):
 image = all_images[i * n + j]
 stitched_filters[
 row_start = (cropped_width + margin) * i
 row_end = (cropped_width + margin) * i + cropped_width
 column_start = (cropped_height + margin) * j
 column_end = (cropped_height + margin) * j + cropped_height
 stitched_filters[
 row_start: row_end,
 column_start: column_end, :] = image

the first stitched_filters[ line in the listing shouldn't be there.

9nut avatar Jun 06 '23 16:06 9nut