mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 10:26:33 +00:00
Add some tensor creation functions to the pyo3 bindings. (#326)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user