mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
names shadowing builtins (#5179)
Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
@@ -51,12 +51,12 @@ def run_evaluation(model_name, tinygrad_expected_wer, reference_wer):
|
||||
|
||||
class LibriSpeech(torch.utils.data.Dataset):
|
||||
def __init__(self):
|
||||
dir = pathlib.Path(__file__).parent.parent.parent / "extra" / "datasets" / "librispeech"
|
||||
if not os.path.exists(dir):
|
||||
os.makedirs(dir)
|
||||
folder = pathlib.Path(__file__).parent.parent.parent / "extra" / "datasets" / "librispeech"
|
||||
if not os.path.exists(folder):
|
||||
os.makedirs(folder)
|
||||
|
||||
self.dataset = torchaudio.datasets.LIBRISPEECH(
|
||||
root=dir,
|
||||
root=folder,
|
||||
url="test-clean",
|
||||
download=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user