(pair)
| 555 | return torch.tensor(indexes, dtype=torch.long, device=device).view(1, -1) |
| 556 | |
| 557 | def tensorsFromPair(pair): |
| 558 | input_tensor = tensorFromSentence(input_lang, pair[0]) |
| 559 | target_tensor = tensorFromSentence(output_lang, pair[1]) |
| 560 | return (input_tensor, target_tensor) |
| 561 | |
| 562 | def get_dataloader(batch_size): |
| 563 | input_lang, output_lang, pairs = prepareData('eng', 'fra', True) |
nothing calls this directly
no test coverage detected