update docs (#4356)

* update docs

* nn.md

* mnist cleanups

* rhip test is very slow
This commit is contained in:
George Hotz
2024-04-30 15:51:42 +08:00
committed by GitHub
parent a2d81514fd
commit d325be2540
9 changed files with 45 additions and 23 deletions

View File

@@ -249,6 +249,7 @@ class TestLinearizer(unittest.TestCase):
# check correctness
helper_tc_allclose(tc.dims[1]+pad, tc.dims[2]+pad, tc.dims[0]+pad, tc.dtype_in, tc.dtype_out, tc_opt=2)
@unittest.skipIf(Device.DEFAULT == "RHIP", "RHIP is really slow here")
def test_tensor_cores_multi_reduce(self):
if not Device[Device.DEFAULT].compiler.compiler_opts.has_tensor_cores:
self.skipTest("device doesn't have tensor cores")

View File

@@ -1,6 +1,6 @@
import unittest
from PIL import Image
from tinygrad.helpers import Context, ContextVar, merge_dicts, strip_parens, prod, round_up, fetch, fully_flatten, from_mv, to_mv, get_contraction
from tinygrad.helpers import Context, ContextVar, merge_dicts, strip_parens, prod, round_up, fetch, fully_flatten, from_mv, to_mv, get_contraction, CI
from tinygrad.shape.symbolic import Variable, NumNode
VARIABLE = ContextVar("VARIABLE", 0)
@@ -145,6 +145,7 @@ class TestFetch(unittest.TestCase):
def test_fetch_bad_http(self):
self.assertRaises(Exception, fetch, 'http://www.google.com/404')
@unittest.skipIf(not CI, "pre commit tests should run offline")
def test_fetch_small(self):
assert(len(fetch('https://google.com', allow_caching=False).read_bytes())>0)