tensorflow / text

Making text a first-class citizen in TensorFlow.
https://www.tensorflow.org/beta/tutorials/tensorflow_text/intro
Apache License 2.0
1.23k stars 344 forks source link

fix: vision transformer tutorial missing self keyword #1189

Closed yangwu1227 closed 1 year ago

yangwu1227 commented 1 year ago

Hi, when following the tutorial, I changed the name of the index_to_word mapping and got a NameError error in the simple_gen method. I thought perhaps it could be the missing self keyword, and without itindex_to_word was just scoped from global. Here's a PR just in case. Thanks.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB