snowkylin / tensorflow-handbook

简单粗暴 TensorFlow 2 | A Concise Handbook of TensorFlow 2 | 一本简明的 TensorFlow 2 入门指导教程
https://tf.wiki
3.94k stars 841 forks source link

Fix a typo in source/_static/code/zh/model/mnist/main.py #50

Closed thinkall closed 4 years ago

thinkall commented 4 years ago
sparse_categorical_accuracy.update() 

should be

sparse_categorical_accuracy.update_state()
snowkylin commented 4 years ago

Thanks!