Programmers learn & share
0 votes
50 views

Problem :

Getting softmax error as follows
only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)
by (6.9k points)   | 50 views

1 Answer

0 votes

Solution :

I have faced the same issue in the past. After doing a lot of research i found the solution as given below

You need to change the below line

tf.nn.softmax_cross_entropy_with_logits(prediction,y)

to below given correct line.

tf.nn.softmax_cross_entropy_with_logits(logits=prediction, labels=y)
If you follow above procedure your issue will be resolved.
by (36.1k points)  
2,218 questions
2,683 answers
59 comments
241 users