In a Google colab notebook by the Tensorflow team, there was a python line like this:
plt.imshow(discriminator_y(sample_zebra)[0, ..., -1], cmap='RdBu_r')
This is the reference notebook and the entire content of the code cell containing that syntax is
plt.figure(figsize=(8, 8))
plt.subplot(121)
plt.title('Is a real zebra?')
plt.imshow(discriminator_y(sample_zebra)[0, ..., -1], cmap='RdBu_r')
plt.subplot(122)
plt.title('Is a real horse?')
plt.imshow(discriminator_x(sample_horse)[0, ..., -1], cmap='RdBu_r')
plt.show()
What does this syntax with [0, ... , -1]
mean?