![Amita pfp](https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/7a206a7b-5242-41ac-9573-d2979e9c7500/rectcrop3)
Amita
@manhchien
200 Following
145 Followers
0 reply
0 recast
0 reaction
1 reply
0 recast
4 reactions
212 replies
359 recasts
1524 reactions
134 replies
114 recasts
522 reactions
345 replies
451 recasts
2223 reactions
247 replies
601 recasts
2542 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
0 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 235 replies
385 recasts
1635 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
705 replies
1058 recasts
4279 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
2 replies
0 recast
0 reaction
0 reply
0 recast
1 reaction
875 replies
1303 recasts
4980 reactions
0 reply
0 recast
1 reaction
705 replies
1233 recasts
4935 reactions
1 reply
0 recast
0 reaction