Use int64 stride everywhere (#1671)

* use int64 stride everywhere

* fix ext

* fix ext

* more shape + cleanup

* one more

* few more
This commit is contained in:
Awni Hannun
2024-12-09 11:09:02 -08:00
committed by GitHub
parent 35b412c099
commit 40c62c1321
102 changed files with 1262 additions and 1705 deletions

View File

@@ -16,7 +16,7 @@ TEST_CASE("test matmul") {
a = array({1.0});
b = array({1.0});
auto out = matmul(a, b);
CHECK_EQ(out.shape(), std::vector<int>{});
CHECK_EQ(out.shape(), Shape{});
CHECK_EQ(out.size(), 1);
CHECK_EQ(out.dtype(), float32);
CHECK_EQ(out.item<float>(), 1.0f);