Open HenryWu01 opened 5 months ago
Update: Ignore this, it does not work at all.
For those who encounter this issue, you have to restore the model like this:
model.saver = tf.compat.v1.train.import_meta_graph('./model/lightgcn.meta')
model.saver.restore(model.sess, tf.train.latest_checkpoint('./model'))
Description
I am currently using the LightGCN model for predictions on my own dataset. The regular workflow, including initializing the model,
model.fit()
, andmodel.recommend_k_items()
, functions without any issues.However, after I use
model.load()
to restore the model from previously saved data,model.recommend_k_items()
throws an error:Please assist in resolving this issue. Thank you!
Other Comments