admin管理员组文章数量:1395329
WARNING:tensorflow:From c:\Users\Admin\Desktop\Maria Deniston\ForensicAi\env\Lib\site-packages\tf_keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tfpat.v1.losses.sparse_softmax_cross_entropy instead.
this is the warning i am facing , it tells me to change the particular low version code, but when i check the specific losses.py line 2976 , its already used tfpat.v1.losses.sparse_softmax_cross_entropy , then why the warning comes ,
LABEL_DTYPES_FOR_LOSSES = { tfpat.v1.losses.sparse_softmax_cross_entropy: "int32", sparse_categorical_crossentropy: "int32", }
this is the code in my losses.py line 2976 , and tf_keras version 2.18.0
chat gpt gives me some codes to replace the that line but that makes another warnings and errors, so i stop to edit , facing the warning everytime i run my project
本文标签:
版权声明:本文标题:tensorflow - tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy i 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744672645a2618919.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论