I'm trying to display images of a dataset on a plot with their predictions. But I have this error: cannot compute Pack as input #1(zero-based) was expected to be a float tensor but is a int32 tensor [Op:Pack] name: packed
This is the code in which I plot:
for images in val_ds.take(1):
tf.squeeze(images, [0])
for i in range(18):
ax = plt.subplot(6, 6, i + 1)
plt.imshow(images[i].numpy().astype("uint8"))
#plt.title(predictions[i])
plt.axis("off")
I have the error on second line, on the tf.squeeze function. I want to remove first dimension of images shape (shape is (18, 360, 360, 3) and I want (360, 360, 3)).
