From 91a352a8e2697828a4b1eafa2bdc1a9a3b7deffa Mon Sep 17 00:00:00 2001 From: William Gibson Date: Sun, 18 Oct 2020 21:31:55 +0100 Subject: [PATCH] Fix tests ((again)) --- tinygrad/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/utils.py b/tinygrad/utils.py index bbef87f6..61f57224 100644 --- a/tinygrad/utils.py +++ b/tinygrad/utils.py @@ -2,7 +2,7 @@ def fetch_mnist(): def fetch(url): import requests, gzip, os, hashlib, numpy fp = os.path.join("/tmp", hashlib.md5(url.encode('utf-8')).hexdigest()) - if not os.path.isfile(fp): + if os.path.isfile(fp): with open(fp, "rb") as f: dat = f.read() else: