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