JOse Managa
@josemanaga
203 Following
100 Followers
15 replies
2000 recasts
2941 reactions
13 replies
2181 recasts
3303 reactions
21 replies
2205 recasts
3469 reactions
0 reply
0 recast
0 reaction
18 replies
2331 recasts
3395 reactions
458 replies
9393 recasts
21361 reactions
12 replies
2322 recasts
2628 reactions
11 replies
2531 recasts
2727 reactions
0 reply
0 recast
0 reaction
196 replies
3081 recasts
4288 reactions
92 replies
762 recasts
3466 reactions
0 reply
0 recast
0 reaction
68 replies
800 recasts
3322 reactions
14 replies
435 recasts
1911 reactions
The differences between the APIs of numpy, cupy and torch are so fascinating....
```
>>> import torch as np
>>> np.arange(10)
tensor([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> a = np.zeros(20)
>>> a[19:-1:-2] = np.arange(10)
```
Torch doesn't let you have ranges that go backwards 🤣
Would love more consistency 43 replies
639 recasts
2643 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
120 replies
378 recasts
2850 reactions
2 replies
2 recasts
4 reactions
0 reply
0 recast
0 reaction