MCPcopy
hub / github.com/tinygrad/tinygrad / test_recip

Method test_recip

test/null/test_gradient.py:48–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46
47 # unary ops unit
48 def test_recip(self): self._test_one_input_function(lambda x: 1.0/x)
49 def test_sin(self): self._test_one_input_function(lambda x: x.sin())
50 def test_sqrt(self): self._test_one_input_function(lambda x: x.sqrt())
51 def test_log2(self): self._test_one_input_function(lambda x: x.log2())

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected