Skip to content
New issue

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

three_nn gpu implementation. #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azaganidis
Copy link

Redefinition of three_nn by tensorflow operations instead of c++ on cpu. Significantly faster.

Redefinition of three_nn by tensorflow operations instead of c++ on cpu. Significantly faster.
Copy link

@hi-zhengcheng hi-zhengcheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it returns directly from tf.nn.top_k(-dist, k=3), I think it's wrong. Pay attention to the minus sign you added before dist. So it should be modified as:

values, indices = tf.nn.top_k(-dist, k=3)
return -values, indices

Nice implementation.

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.

None yet

2 participants