tensorflow / community

Stores documents used by the TensorFlow developer community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'tensorflow._api.v1.keras.losses' has no attribute 'SparseCategoricalCrossentropy'

ylzzz opened this issue · comments

commented

Hello, I am a beginner, I would like to ask why this problem occurs.Why does it show “module 'tensorflow._api.v1.keras.losses' has no attribute 'SparseCategoricalCrossentropy'”?I want to know how to solve it.Please.Thank you!