Skip to content

Commit

Permalink
Fix a bug (keras-team#12618)
Browse files Browse the repository at this point in the history
This makes `len(pixel_range) == len(sample_range_x) == len(sample_range_y) == 30`.
  • Loading branch information
haocheng6 authored and fchollet committed Apr 4, 2019
1 parent 2fadce5 commit d7ea34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/variational_autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def plot_results(models,

plt.figure(figsize=(10, 10))
start_range = digit_size // 2
end_range = n * digit_size + start_range + 1
end_range = (n - 1) * digit_size + start_range + 1
pixel_range = np.arange(start_range, end_range, digit_size)
sample_range_x = np.round(grid_x, 1)
sample_range_y = np.round(grid_y, 1)
Expand Down

0 comments on commit d7ea34f

Please sign in to comment.