Luke
@lukeyt
842 Following
539 Followers
0 reply
0 recast
1 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
1 reply
0 recast
1 reaction
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
132 replies
1613 recasts
6265 reactions
0 reply
0 recast
3 reactions
72 replies
46 recasts
362 reactions
32 replies
54 recasts
878 reactions