'buffer' object has no attribute 'shape'
I run python run_movielens.py in my computer has this error /fm.py", line 61, in forward bs = val.data.shape[0] AttributeError: 'buffer' object has no attribute 'shape'
how to solve this, i meet too
It may be because the version of chainer is not the good one anymore? Could you please tell us the version of chainer you used @cemoody? Could you do a pip freeze?
Presumably it was after Chainer 1.9 but I still get the error on Chainer 2. Is it because this code is supposed to be run on GPU?
I wonder why there are buffers in the first place. @cemoody Please!
So I managed to run the code by using Chainer 1.23 and adding val, loc = loc, val in the forward method of FM. For some reasons, these two variables are swapped.