pytorch-transformers-classification icon indicating copy to clipboard operation
pytorch-transformers-classification copied to clipboard

SummaryWriter Import Missing from Gist

Open alfredtangsw opened this issue 5 years ago • 3 comments

Hello! The following import line is missing from the Gist you provided in your article. Discovered it was missing when I got an error running the code. I found it in your ipynb instead.

from tensorboardX import SummaryWriter

Could you add it to your Gist? It would be helpful to anyone who is looking through your article and doing good old copy-and-paste. Thanks!

alfredtangsw avatar Oct 03 '19 03:10 alfredtangsw

The recommended method is to get the code from the Github repo since the code on the article is for demonstration only. I do understand that sometimes you just want to use copy and paste, but updating the code on the article is quite tedious (updating the Gist doesn't automatically update the article as far as I know). I'll see what I can do.

ThilinaRajapakse avatar Oct 03 '19 03:10 ThilinaRajapakse

Agreed. That's why I am using your repo now. Haha

I also have a separate issue with the code that I'm trying to resolve on my own. If I can't, I will open an issue to ask you about it.

alfredtangsw avatar Oct 03 '19 03:10 alfredtangsw

Hope it goes well!

ThilinaRajapakse avatar Oct 03 '19 03:10 ThilinaRajapakse