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

pytorch implementation of Attention is all you need

Results 6 pytorch-transformer issues
Sort by recently updated
recently updated
newest added

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...

1st, backend.Embedding is removed in pytorch. 2nd, the tensors in this repo are not in the same device type, this really messed up the code, I tried to modify this...

I want to know why using the parameter 'sinusoid'? And could I not set the parameter ‘maxlen’ and using varying length of the text between batch?

Traceback (most recent call last): File "train.py", line 90, in train() File "train.py", line 81, in train writer.export_scalars_to_json(hp.model_dir + '/all_scalars.json') AttributeError: 'SummaryWriter' object has no attribute 'export_scalars_to_json' How can i...

Hi. Please i would like to add some features to this code that i have read on beam search. Like coverage penalty and length normalization. But i don't know where...

Thank you for your excellent work,can eval.py infer on one sentence?