MCPcopy
hub / github.com/tinygrad/tinygrad / test_softmax_one_kernel

Method test_softmax_one_kernel

test/null/test_schedule.py:1014–1019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1012
1013class TestSwizzle(unittest.TestCase):
1014 def test_softmax_one_kernel(self):
1015 Tensor.manual_seed(0)
1016 with Context(DEBUG=0, TRACK_MATCH_STATS=0):
1017 a = Tensor.randn(32, 32).realize()
1018 t = a.softmax()
1019 check_schedule(t, 3) # TODO: 1?
1020
1021 def test_argmax_one_kernel(self):
1022 Tensor.manual_seed(0)

Callers

nothing calls this directly

Calls 6

ContextClass · 0.90
manual_seedMethod · 0.80
realizeMethod · 0.80
randnMethod · 0.80
softmaxMethod · 0.80
check_scheduleFunction · 0.70

Tested by

no test coverage detected