mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
Add to the example.
This commit is contained in:
@ -5,7 +5,8 @@ print(t)
|
||||
print("shape", t.shape, t.rank)
|
||||
print(t + t)
|
||||
|
||||
t = candle.Tensor([3, 1, 4, 1, 5, 9, 2, 6])
|
||||
t = candle.Tensor([3.0, 1, 4, 1, 5, 9, 2, 6])
|
||||
print(t)
|
||||
print(t+t)
|
||||
print(t.reshape([2, 4]))
|
||||
t = t.reshape([2, 4])
|
||||
print(t.matmul(t.t()))
|
||||
|
Reference in New Issue
Block a user