We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C:\Users\47307\Desktop\MGCA-main>C:/Users/47307/anaconda3/envs/mgca/python.exe c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py Freezing BERT model Traceback (most recent call last): File "c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py", line 464, in report_feat, sent_feat, sent_mask, sents = model( File "C:\Users\47307\anaconda3\envs\mgca\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "C:\Users\47307\anaconda3\envs\mgca\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, **kwargs) File "c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py", line 382, in forward last_layer_attn = outputs.attentions[-1][:, :, 0, 1:].mean(dim=1) TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
C:\Users\47307\Desktop\MGCA-main>C:/Users/47307/anaconda3/envs/mgca/python.exe c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py
Freezing BERT model
Traceback (most recent call last):
File "c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py", line 464, in
report_feat, sent_feat, sent_mask, sents = model(
File "C:\Users\47307\anaconda3\envs\mgca\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\47307\anaconda3\envs\mgca\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "c:/Users/47307/Desktop/MGCA-main/mgca/models/backbones/encoder.py", line 382, in forward
last_layer_attn = outputs.attentions[-1][:, :, 0, 1:].mean(dim=1)
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: