最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

tensorflow - tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy i

programmeradmin1浏览0评论

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论