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

Method test_ndarray_tolist

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

Source from the content-addressed store, hash-verified

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):
468 self.assertFalse(is_numpy_ndarray([1, 2, 3]))
469 def test_tensor(self):

Callers

nothing calls this directly

Calls 2

is_numpy_ndarrayFunction · 0.90
tolistMethod · 0.45

Tested by

no test coverage detected