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

Method test_tensor

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

Source from the content-addressed store, hash-verified

467 def test_list(self):
468 self.assertFalse(is_numpy_ndarray([1, 2, 3]))
469 def test_tensor(self):
470 self.assertFalse(is_numpy_ndarray(Tensor([1, 2, 3])))
471 self.assertFalse(is_numpy_ndarray(Tensor(np.array([1, 2, 3]))))
472
473if __name__ == '__main__':
474 unittest.main()

Callers

nothing calls this directly

Calls 2

is_numpy_ndarrayFunction · 0.90
TensorClass · 0.90

Tested by

no test coverage detected