CogQA icon indicating copy to clipboard operation
CogQA copied to clipboard

model2 = CognitiveGNN(model1.config.hidden_size) 'NoneType' object has no attribute 'config'

Open ShaoaAllen opened this issue 4 years ago • 0 comments

作者老师您好!有个bug我刚开始复现的时候就出现了,后来跑着跑着自己没了,现在换了模型又出现了。 Traceback (most recent call last): File "/home/shaoai/CogQA/train.py", line 337, in fire.Fire(main) File "/home/shaoai/anaconda3/envs/mypytorch/lib/python3.6/site-packages/fire/core.py", line 127, in Fire component_trace = _Fire(component, args, context, name) File "/home/shaoai/anaconda3/envs/mypytorch/lib/python3.6/site-packages/fire/core.py", line 366, in _Fire component, remaining_args) File "/home/shaoai/anaconda3/envs/mypytorch/lib/python3.6/site-packages/fire/core.py", line 542, in _CallCallable result = fn(*varargs, **kwargs) File "/home/shaoai/CogQA/train.py", line 323, in main model2 = CognitiveGNN(model1.config.hidden_size) AttributeError: 'NoneType' object has no attribute 'config' 这是我第一次clone代码跑的时候就碰到的bug,请问是为什么呢?怎么解决? 期待您的回复!感谢!

ShaoaAllen avatar Jan 12 '21 03:01 ShaoaAllen