Skip to content

visualise model Summary #1487

Answered by klae01
waqarsqureshi asked this question in Q&A
Oct 7, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

More details are included in the code in the following article: https://androidkt.com/visualize-pytorch-model-graph-with-tensorboard/

short summary:

from torch.utils.tensorboard import SummaryWriter
writer=SummaryWriter()
writer.add_graph(model, torch.randn(1, 3, 384, 384))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@waqarsqureshi
Comment options

Answer selected by waqarsqureshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants