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
Unilm/modeling_unilm.py
Line 182 in 63a8cd2
To fix a bug which might be made by different torch version, I use the sentence as bellow:
`extended_attention_mask = extended_attention_mask.to(dtype=self.parameters().gi_frame.f_locals['self'].dtype)`
( My python env: torch==1.6.0 , which may different from yours. For getting the dtype of self.parameters() I have to alter it in a HARD CODE way. )
torch==1.6.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Unilm/modeling_unilm.py
Line 182 in 63a8cd2
--However, a StopIteration Exception had occurred.
To fix a bug which might be made by different torch version, I use the sentence as bellow:
( My python env:
torch==1.6.0
, which may different from yours. For getting the dtype of self.parameters() I have to alter it in a HARD CODE way. )The text was updated successfully, but these errors were encountered: