fchollet/deep-learning-with-python-notebooks

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

9nut opened this issue · 0 comments

9nut commented

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.