Add some binary operators.

This commit is contained in:
laurent
2023-07-01 21:27:35 +01:00
parent 42d1a52d01
commit fbbde5b02c
2 changed files with 18 additions and 2 deletions

View File

@ -3,4 +3,4 @@ import candle
t = candle.Tensor(42.0)
print(t)
print("shape", t.shape, t.rank)
print(candle.add(t, 3.14))
print(t + t)