Skip to content

Commit

Permalink
(#3) Defense: Cast EagerTensor to numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed May 2, 2022
1 parent 45744ce commit 81c992c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ def concat_batch_images(batch_images: np.array):
np.concatenate(
[
np.concatenate(i, axis=1)
for i in batch_images.reshape(-1, width, *batch_images.shape[1:])
for i in np.array(batch_images).reshape(
-1, width, *batch_images.shape[1:]
)
],
axis=0,
),
Expand Down

0 comments on commit 81c992c

Please sign in to comment.