Helper functions for visualizing the embedding and weights as images. Steps:
- Convert the embedding or weights into an image, which is comprised of smaller images (feature maps or weight matrices as images).
- Use tensorflow.summary.image() to log the converted images.
- Add related codes just like what are required for visualizing images in TensorFlow for TensorBoard.
- The result can be viewed via TensorBoard.