FFrankyy / FINDER

FINDER - FInding key players in complex Networks through DEep Reinforcement learning (Nature Machine Intelligence)
MIT License
176 stars 46 forks source link

Invalid argument: Cannot multiply A and B because inner dimension does not match: 59899 vs. 59783. #34

Open mingkin opened 10 months ago

mingkin commented 10 months ago

number of nodes:59783 number of edges:69429 2023-11-06 15:06:02.409266: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10 2 root error(s) found. (0) Invalid argument: Cannot multiply A and B because inner dimension does not match: 59899 vs. 59783. Did you forget a transpose? Dimensions of A: [59899, 59899). Dimensions of B: [59783,64] [[node SparseTensorDenseMatMul/SparseTensorDenseMatMul (defined at /py-project/FINDER/FINDER_CN_cost/testReal.py:25) ]] [[MatMul_22/_119]] (1) Invalid argument: Cannot multiply A and B because inner dimension does not match: 59899 vs. 59783. Did you forget a transpose? Dimensions of A: [59899, 59899). Dimensions of B: [59783,64] [[node SparseTensorDenseMatMul/SparseTensorDenseMatMul (defined at /py-project/FINDER/FINDER_CN_cost/testReal.py:25) ]] 0 successful operations. 0 derived errors ignored.

Original stack trace for 'SparseTensorDenseMatMul/SparseTensorDenseMatMul': File "/py-project/FINDER/FINDER_CN_cost/testReal.py", line 143, in main() File "/py-project/FINDER/FINDER_CN_cost/testReal.py", line 137, in main GetSolution(0.01, model_file) File "/py-project/FINDER/FINDER_CN_cost/testReal.py", line 25, in GetSolution dqn = FINDER() File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/ops/sparse_ops.py", line 2364, in sparse_tensor_dense_matmul adjoint_b=adjoint_b) File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/ops/gen_sparse_ops.py", line 3053, in sparse_tensor_dense_mat_mul adjoint_b=adjoint_b, name=name) File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper op_def=op_def) File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func return func(*args, **kwargs) File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op op_def=op_def) File "/miniconda3/envs/py37/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 2005, in init self._traceback = tf_stack.extract_stack()

Oliver-0423 commented 10 months ago

i have the same problem, did you find out how to fix it ?