Skip to content

Conversation

@by321
Copy link

@by321 by321 commented Oct 18, 2025

When generating clothing or background category labels, the log_softmax() call is immediately followed by an argmax() call. In this situation, the log_softmax() is not needed.

Since log_softmax is monotonically increasing, the max value before log_softmax will still be the max value after log_softmax, so we can go to argmax() directly.

When generating clothing or background category labels, the log_softmax() call is immediately followed by an argmax() call. In this situation, the log_softmax() is not needed.

Since log_softmax is monotonically increasing, the max value before log_softmax will still be the max value after log_softmax, so we can go to argmax() directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant