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

wrong api used #47

Open
KimRasak opened this issue Sep 14, 2020 · 1 comment
Open

wrong api used #47

KimRasak opened this issue Sep 14, 2020 · 1 comment

Comments

@KimRasak
Copy link

KimRasak commented Sep 14, 2020

def _create_ngcf_embed(self):
  ...
  norm_embeddings = tf.math.l2_normalize(ego_embeddings, axis=1)

will caused AttributeError: module 'tensorflow.math' has no attribute 'l2_normalize' in tensorflow-gpu 1.8.0, so it should be norm_embeddings = tf.nn.l2_normalize(ego_embeddings, axis=1)

@ghost
Copy link

ghost commented Mar 14, 2021

def _create_ngcf_embed(self):
  ...
  norm_embeddings = tf.math.l2_normalize(ego_embeddings, axis=1)

will caused AttributeError: module 'tensorflow.math' has no attribute 'l2_normalize' in tensorflow-gpu 1.8.0, so it should be norm_embeddings = tf.nn.l2_normalize(ego_embeddings, axis=1)

same problem, your solution is useful.

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