Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/autokey/service.py", line 206, in __tryReleaseLock

self.configManager.lock.release()
RuntimeError: release unlocked lock

Traceback (most recent call last):


 "xl_mwe.py", line 43, in <module>

main()


 "xl_mwe.py", line 37, in main

xlnet_output = xlnet(inputs_embeds=embedded_batch)[0]


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\transformers\modeling_xlnet.py", line 858, in forward

head_mask=head_mask[i])


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\transformers\modeling_xlnet.py", line 436, in forward

head_mask=head_mask)


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\transformers\modeling_xlnet.py", line 383, in forward

k_head_r = torch.einsum('ibh,hnd->ibnd', r, self.r)


 "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\functional.py", line 202, in einsum

return torch._C._VariableFunctions.einsum(equation, operands)
RuntimeError: size of dimension does not match previous size, operand 1, dim 0
