Aleksandr Starostin
@papay147
2500 Following
521 Followers
0 reply
0 recast
2 reactions
0 reply
0 recast
0 reaction
66 replies
217 recasts
641 reactions
33 replies
121 recasts
331 reactions
22 replies
46 recasts
193 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
43 replies
72 recasts
498 reactions
92 replies
198 recasts
1168 reactions
71 replies
314 recasts
1419 reactions
68 replies
221 recasts
1108 reactions
14 replies
97 recasts
491 reactions
23 replies
74 recasts
430 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
157 recasts
800 reactions
132 replies
541 recasts
2283 reactions
37 replies
100 recasts
571 reactions
91 replies
204 recasts
1116 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction