Add some tensor creation functions to the pyo3 bindings. (#326)

This commit is contained in:
Laurent Mazare
2023-08-06 06:50:33 +01:00
committed by GitHub
parent b278834267
commit 88bd3b604a
3 changed files with 77 additions and 5 deletions

View File

@ -13,3 +13,6 @@ t = t.reshape([2, 4])
print(t.matmul(t.t()))
print(t.to_dtype("u8"))
t = candle.randn((5, 3))
print(t)