Hello @Johnson0722 , I meet this error when I run FM.py. I use the same dataset as you. Can you give me some help?
`Caused by op 'interaction_layer/SparseTensorDenseMatMul/SparseTensorDenseMatMul', defined at:
File "FM.py", line 223, in
model.build_graph()
File "FM.py", line 94, in build_graph
self.inference()
File "FM.py", line 61, in inference
tf.pow(tf.sparse_tensor_dense_matmul(self.X, v), 2),
File "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\sparse_ops.py", line 1822, in sparse_tensor_dense_matmul
adjoint_b=adjoint_b)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_sparse_ops.py", line 3213, in sparse_tensor_dense_mat_mul
name=name)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3155, in create_op
op_def=op_def)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1717, in init
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): k (303) from index[19,1] out of bounds (>=303)
[[Node: interaction_layer/SparseTensorDenseMatMul/SparseTensorDenseMatMul = SparseTensorDenseMatMul[T=DT_FLOAT, Tindices=DT_INT64, adjoint_a=false, adjoint_b=false, _device="/job:localhost/replica:0/task:0/devi
ce:CPU:0"](_arg_Placeholder_2_0_2, _arg_Placeholder_1_0_1, _arg_Placeholder_0_0, interaction_layer/v/read)]]
`
Hello @Johnson0722 , I meet this error when I run FM.py. I use the same dataset as you. Can you give me some help?
`Caused by op 'interaction_layer/SparseTensorDenseMatMul/SparseTensorDenseMatMul', defined at: File "FM.py", line 223, in
model.build_graph()
File "FM.py", line 94, in build_graph
self.inference()
File "FM.py", line 61, in inference
tf.pow(tf.sparse_tensor_dense_matmul(self.X, v), 2),
File "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\sparse_ops.py", line 1822, in sparse_tensor_dense_matmul
adjoint_b=adjoint_b)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_sparse_ops.py", line 3213, in sparse_tensor_dense_mat_mul
name=name)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3155, in create_op
op_def=op_def)
File "D:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1717, in init
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): k (303) from index[19,1] out of bounds (>=303) [[Node: interaction_layer/SparseTensorDenseMatMul/SparseTensorDenseMatMul = SparseTensorDenseMatMul[T=DT_FLOAT, Tindices=DT_INT64, adjoint_a=false, adjoint_b=false, _device="/job:localhost/replica:0/task:0/devi ce:CPU:0"](_arg_Placeholder_2_0_2, _arg_Placeholder_1_0_1, _arg_Placeholder_0_0, interaction_layer/v/read)]] `