Youness
@zoghapro
0 reply
0 recast
0 reaction
0 reply
1 recast
13 reactions
0 reply
0 recast
0 reaction
0 reply
11 recasts
81 reactions
0 reply
13 recasts
58 reactions
0 reply
18 recasts
84 reactions
0 reply
0 recast
0 reaction
27 replies
146 recasts
881 reactions
2 replies
1642 recasts
5397 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
6 replies
248 recasts
1266 reactions
10 replies
250 recasts
1206 reactions
8 replies
213 recasts
1157 reactions
10 replies
108 recasts
595 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 0 reply
167 recasts
834 reactions
3 replies
546 recasts
2361 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
7 replies
704 recasts
2880 reactions