Update mnist tutorial to use tensorboard#5425
Open
samanklesaria wants to merge 2 commits intogoogle:mainfrom
Open
Update mnist tutorial to use tensorboard#5425samanklesaria wants to merge 2 commits intogoogle:mainfrom
samanklesaria wants to merge 2 commits intogoogle:mainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
2816535 to
4aa41be
Compare
vfdev-5
reviewed
Apr 17, 2026
vfdev-5
reviewed
Apr 17, 2026
| from IPython.display import clear_output | ||
| import matplotlib.pyplot as plt | ||
| from tensorboardX import SummaryWriter | ||
| import tensorboard |
Collaborator
There was a problem hiding this comment.
Why do we need to import tensorboard here?
Collaborator
Author
There was a problem hiding this comment.
For the '%tensorboard' magic to visualize within Jupyter. Unfortunately, the within-notebook Jupyter doesn't seem to show up in the Sphinx rendering. Perhaps it's easiest no to use the within-notebook tensorboard magic and instead put in screetshots like the original jax AI stack one does.
Collaborator
Author
There was a problem hiding this comment.
I added a screenshot (because the %jupyter magic doesn't survive Sphinx), but kept the use of the magic.
4aa41be to
63f7f0a
Compare
12 tasks
63f7f0a to
7f119d2
Compare
IvyZX
reviewed
Apr 23, 2026
7f119d2 to
464f06f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR ports the example https://docs.jaxstack.ai/en/latest/JAX_visualizing_models_metrics.html from the Jax AI stack. It also switches the import of MNIST to huggingface datasets rather than tfd. For real world examples, we use grain over tfd anyway, so teaching users about using tfd seems unnecessary. We can also avoid the heavy weight tensorflow dependency this way.