tsinghua-fib-lab / SIGIR21-SURGE

Official implementation of SIGIR'2021 paper: "Sequential Recommendation with Graph Neural Networks".
MIT License
85 stars 27 forks source link

Some bugs occur when I'm running this code #4

Closed liuhui0401 closed 2 years ago

liuhui0401 commented 2 years ago

(1)AttributeError: module 'tensorflow' has no attribute 'sort' (2)TypeError: gather_nd() got an unexpected keyword argument 'batch_dims' (3)TypeError: Expected int32, got None of type '_Message' instead. Is it normal? I can't solve the last problem. I need your help, thanks.

Zzzz-wy commented 2 years ago

Have you solved the third problem?

liuhui0401 commented 2 years ago

@Zzzz-wy I have tried to use another function to replace the function that reported the error. This method is really useful, the code no longer show the same error. But I can't solve all the problems. I think it may be caused by a version issue.

Zzzz-wy commented 2 years ago

@liuhui0401 I use TensorFlow1.14 to run the model successfully.

DavyMorgan commented 2 years ago

We have updated the TensorFlow version in README to 1.15.2, which is supposed to run without these errors.

(1)AttributeError: module 'tensorflow' has no attribute 'sort' (2)TypeError: gather_nd() got an unexpected keyword argument 'batch_dims' (3)TypeError: Expected int32, got None of type '_Message' instead. Is it normal? I can't solve the last problem. I need your help, thanks.