We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问这里为什么要做两次sort?
loss_class_idx = tf.argsort(loss_class, axis=1, direction='DESCENDING') loss_class_idx_rank = tf.argsort(loss_class_idx, axis=1)
The text was updated successfully, but these errors were encountered:
因為這邊我要拿到每個element的rank,下面以numpy做解釋:
np.argsort([5,2,1,4]) array([2, 1, 3, 0], dtype=int64)
np.argsort(np.argsort([5,2,1,4])) array([3, 1, 0, 2], dtype=int64) # <- rank of each element
Sorry, something went wrong.
明白了,多谢。
No branches or pull requests
请问这里为什么要做两次sort?
The text was updated successfully, but these errors were encountered: