22.02.2024 Views

Daniel Voigt Godoy - Deep Learning with PyTorch Step-by-Step A Beginner’s Guide-leanpub

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

browser, you’ll likely see something like this:

Figure 2.3 - Empty TensorBoard

It doesn’t show you anything yet because it cannot find any data inside the runs

folder, as we haven’t sent anything there yet. It will be automatically updated when

we send some data to it so, let’s send some data to TensorBoard!

Running It Separately (Binder)

If you chose to follow this book using Binder, you’ll need to run TensorBoard

separately.

But you won’t have to actually do much. Configuring TensorBoard for running

inside Binder’s environment is a bit tricky (it involves Jupyter’s server extensions),

so I took care of that for you :-)

Moreover, I’ve provided an automatically generated link that will open a new tab

pointing to the TensorBoard instance running in your Binder environment.

The link looks like this (the actual URL is generated on the spot, this one is just a

dummy):

Click here to open TensorBoard

The only downside is that the folder where TensorBoard will look for logs is fixed:

runs.

SummaryWriter

It all starts with the creation of a SummaryWriter:

TensorBoard | 155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!