Skip to content

Instantly share code, notes, and snippets.

@bartubozkurt
Created August 29, 2021 15:28
Show Gist options
  • Save bartubozkurt/0b1f0387d7137ecc3520786fa8fa916c to your computer and use it in GitHub Desktop.
Save bartubozkurt/0b1f0387d7137ecc3520786fa8fa916c to your computer and use it in GitHub Desktop.
# Add the image to a batch where it's the only member.
img = (np.expand_dims(img,0))
print(img.shape)
# (1, 28, 28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment