mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
update docs (#4356)
* update docs * nn.md * mnist cleanups * rhip test is very slow
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user