The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

tensorflow methods

tensorflow methods

0
Votes
1
Answer

what is tf.cast() and tf.nn.softmax_cross_entropy_with_logits() pls explain this in detail

1 Answer

365 Team
0
Votes

Hi Ashutosh,
First of all, I’d like to point out how amazing the TensorFlow documentation is that you can find here: https://www.tensorflow.org/
More specifically,
Explanation on tf.cast() could be found here: https://www.tensorflow.org/api_docs/python/tf/cast
In layman’s terms, to cast means to ‘force a different variable type’. For instance, if you have the number ‘3’, you can cast it to be the string 3 (from number it becomes text).
On the other hand, tf.nn.softmax_cross_entropy_with_logits() is available here: https://www.tensorflow.org/api_docs/python/tf/nn/softmax_cross_entropy_with_logits
Combines the softmax activation with the cross entropy loss.
Best,
Iliya