![hedzio pfp](https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/35df5d4f-9198-4ecf-b90b-5d20173c0800/rectcrop3)
hedzio
@hedzio
300 Following
149 Followers
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
61 replies
1378 recasts
2061 reactions
0 reply
0 recast
2 reactions
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
386 recasts
1635 reactions
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
2 replies
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
505 replies
801 recasts
2938 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction