![hbu pfp](https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/76542fb5-5184-4b85-735d-2dc82a886100/rectcrop3)
hbu
@hbu
251 Following
468 Followers
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
363 replies
141 recasts
565 reactions
137 replies
289 recasts
1272 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 235 replies
415 recasts
1773 reactions
23 replies
6 recasts
49 reactions
55 replies
5 recasts
48 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
454 replies
75 recasts
525 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
2 reactions