Skip to content

Commit

Permalink
fix #586 (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpa committed Jun 28, 2020
1 parent 022f060 commit 8f50866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboardX/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def make_grid(I, ncols=8):
W = I.shape[3]
ncols = min(nimg, ncols)
nrows = int(np.ceil(float(nimg) / ncols))
canvas = np.zeros((I.shape[1], H * nrows, W * ncols))
canvas = np.zeros((I.shape[1], H * nrows, W * ncols), dtype=I.dtype)
i = 0
for y in range(nrows):
for x in range(ncols):
Expand Down

0 comments on commit 8f50866

Please sign in to comment.