Aleksandr Starostin
@papay147
2500 Following
520 Followers
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
68 replies
543 recasts
1711 reactions
34 replies
376 recasts
924 reactions
20 replies
144 recasts
582 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
43 replies
303 recasts
1393 reactions
84 replies
667 recasts
3073 reactions
71 replies
1054 recasts
4200 reactions
68 replies
792 recasts
3251 reactions
12 replies
431 recasts
1730 reactions
23 replies
349 recasts
1573 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
574 recasts
2368 reactions
113 replies
1444 recasts
5664 reactions
39 replies
417 recasts
1747 reactions
86 replies
678 recasts
3057 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction