indexes.append( EOS_token ). return torch.tensor( indexes, dtype=torch.long ).to( device ).view(-1, 1). def tensorsFromPair( input_lang ...
確定! 回上一頁