neural_graph_collaborative_filtering
neural_graph_collaborative_filtering copied to clipboard
wrong api used
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)
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 benorm_embeddings = tf.nn.l2_normalize(ego_embeddings, axis=1)
same problem, your solution is useful.