tunz / transformer-pytorch

Transformer implementation in PyTorch.
https://tunz.kr/post/4
MIT License
464 stars 102 forks source link

UnboundLocalError with targets variable #4

Closed liperrino closed 5 years ago

liperrino commented 5 years ago

File "decoder.py", line 99, in main t_self_mask = utils.create_trg_self_mask(targets.size()[1], device=targets.device) UnboundLocalError: local variable 'targets' referenced before assignment

liperrino commented 5 years ago

It is my fault there is no error. sorry