MCPcopy
hub / github.com/tinygrad/tinygrad / test_chain

Method test_chain

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

Source from the content-addressed store, hash-verified

57
58 # chain rule
59 def test_chain(self): self._test_one_input_function(lambda x: x.sin().sqrt())
60 def test_chain_binop(self): self._test_two_input_function(lambda x,y: (x*y)+x*y)
61 def test_big_add_sin(self): self._test_two_input_function(lambda x,y: x.sin()+3.0/y)
62 def test_big_chain(self): self._test_two_input_function(lambda x,y: (1.0/x*y)+x*y)

Callers

nothing calls this directly

Calls 3

sqrtMethod · 0.80
sinMethod · 0.80

Tested by

no test coverage detected