pytorch-transformer icon indicating copy to clipboard operation
pytorch-transformer copied to clipboard

Fix a NameError in main()

Open Xtraordinaire9911 opened this issue 4 years ago • 0 comments

I fixed a NameError in main(). But still there exist other issues is your class "positional_encoding", round line 100 in the file modules.py . I am not quite sure that self._backend is inherited from nn.Module; and there is an AttributeError induced by this code:

outputs = self._backend.Embedding.apply( position_ind, lookup_table, padding_idx, None, 2, False, False)

I will figure out further how to sort out the issue~

Xtraordinaire9911 avatar Jun 16 '21 06:06 Xtraordinaire9911