hexiangnan / neural_factorization_machine

TenforFlow Implementation of Neural Factorization Machine
466 stars 186 forks source link

updated sub to subtract so code run under tf=14+ #12

Open zainulabidin302 opened 4 years ago

zainulabidin302 commented 4 years ago

Hello, I was experiencing this issue. https://github.com/hexiangnan/neural_factorization_machine/issues/2

So I replaced calls to sub with subtract because it was changed in TensorFlow https://github.com/tensorflow/tensorflow/issues/7032.

After this update, the code will run under at least tf==1.4 (i have tested)