Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/examples
/ data.py
File
data.py
language_translation/src/data.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
torch
2
from
torch.nn.utils.rnn
import
pad_sequence
3
from
torch.utils.data
import
DataLoader
4
from
torchtext.data.utils
import
get_tokenizer
Callers
nothing calls this directly
Calls
2
Opts
Class · 0.85
get_data
Function · 0.85
Tested by
no test coverage detected