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

关于内积替换欧式距离的问题 #6

Open
changhexingchen opened this issue Nov 27, 2021 · 0 comments
Open

关于内积替换欧式距离的问题 #6

changhexingchen opened this issue Nov 27, 2021 · 0 comments

Comments

@changhexingchen
Copy link

作者您好:
我看内积替换欧式距离的问代码是把空间距离换成了空间距离的平方了。
relative_dis = tf.sqrt(tf.reduce_sum(tf.square(relative_xyz), axis=-1, keepdims=True))
换成了:
relative_dis = tf.reduce_sum(tf.square(relative_xyz), axis=-1, keepdims=True)
请问还有其它代码替换吗?假如只有这一处的话,这个算不上用内积替换欧式距离呀。

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

No branches or pull requests

1 participant