neural_graph_collaborative_filtering icon indicating copy to clipboard operation
neural_graph_collaborative_filtering copied to clipboard

wrong api used

Open KimRasak opened this issue 5 years ago • 1 comments
trafficstars

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)

KimRasak avatar Sep 14 '20 10:09 KimRasak

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.

ghost avatar Mar 14 '21 08:03 ghost