MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_tensor_numpy

Method test_tensor_numpy

test/unit/test_helpers.py:11–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class TestIsNumpyNdarray(unittest.TestCase):
11 def test_tensor_numpy(self):
12 self.assertTrue(is_numpy_ndarray(Tensor([1, 2, 3]).numpy()))
13
14if __name__ == '__main__':
15 unittest.main()

Callers

nothing calls this directly

Calls 3

is_numpy_ndarrayFunction · 0.90
TensorClass · 0.90
numpyMethod · 0.45

Tested by

no test coverage detected