Tensorboard in PyTorch 1.1.0 -- SummaryWriter doesn't have attribute 'flush'

I’m using an older version of PyTorch 1.1.0, and I realize that the SummaryWriter doesn’t have the flush method. Is there a workaround for me to update all the metrics in tensorboard while training?

You could try to add the flush method manually or update PyTorch to the latest version.
That being said, it seems that flush was added in this PR, which should be available in 1.1.0.

1 Like