Skip to content

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.

2 participants