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

Method test_ndarray

test/null/test_helpers.py:463–464  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

461
462class TestIsNumpyNdarray(unittest.TestCase):
463 def test_ndarray(self):
464 self.assertTrue(is_numpy_ndarray(np.array([1, 2, 3])))
465 def test_ndarray_tolist(self):
466 self.assertFalse(is_numpy_ndarray(np.array([1, 2, 3]).tolist()))
467 def test_list(self):

Callers

nothing calls this directly

Calls 1

is_numpy_ndarrayFunction · 0.90

Tested by

no test coverage detected