A clear and concise description of what the question is.
RE模型使用GCN,训练时没有什么问题,在预测时,报了这个错误:(使用的是python3.8,torch1.10)
Traceback (most recent call last):
File "D:\pycharmprojects\deepke\deepke-main\example\re\standard\predict.py", line 141, in main
y_pred = model(x)
File "D:\Anaconda\envs\deepke\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(*input, *kwargs)
File "D:\pycharmprojects\deepke\deepke-main\src\deepke\relation_extraction\standard\models\GCN.py", line 30, in forward
output = self.gcn(inputs, adj)
File "D:\Anaconda\envs\deepke\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl
return forward_call(input, **kwargs)
File "D:\pycharmprojects\deepke\deepke-main\src\deepke\attribution_extraction\standard\module\GCN.py", line 33, in forward
Ax = adj.bmm(outputs)
RuntimeError: Expected batch2_sizes[0] == bs && batch2_sizes[1] == contraction_size to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Environment (please complete the following information):
OS: [e.g. mac / window]
Python Version [e.g. 3.6]
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the question
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Environment (please complete the following information):
Screenshots
Additional context