
Yasha🦖🎩
@yazeed
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 19 replies
277 recasts
1232 reactions
36 replies
61 recasts
177 reactions
19 replies
36 recasts
44 reactions
0 reply
0 recast
0 reaction
15 replies
66 recasts
280 reactions
0 reply
1 recast
1 reaction
0 reply
1 recast
6 reactions
1 reply
0 recast
4 reactions
30 replies
23 recasts
55 reactions
34 replies
41 recasts
33 reactions
2 replies
5 recasts
79 reactions
25 replies
276 recasts
905 reactions
1 reply
20 recasts
61 reactions
4 replies
9 recasts
102 reactions
1 reply
2 recasts
23 reactions
1 reply
4 recasts
42 reactions
17 replies
4 recasts
10 reactions
13 replies
32 recasts
68 reactions
24 replies
9 recasts
82 reactions
60 replies
32 recasts
123 reactions