
firdavsmonzo
@firdavsmonzo
290 Following
158 Followers
2 replies
1 recast
2 reactions
0 reply
19 recasts
33 reactions
0 reply
6 recasts
18 reactions
0 reply
5 recasts
25 reactions
0 reply
18 recasts
45 reactions
0 reply
12 recasts
35 reactions
0 reply
7 recasts
43 reactions
0 reply
6 recasts
46 reactions
0 reply
6 recasts
43 reactions
0 reply
4 recasts
51 reactions
0 reply
9 recasts
45 reactions
0 reply
8 recasts
53 reactions
0 reply
7 recasts
45 reactions
0 reply
6 recasts
55 reactions
0 reply
7 recasts
58 reactions
0 reply
4 recasts
55 reactions
0 reply
2 recasts
56 reactions
1 reply
1 recast
16 reactions
0 reply
52 recasts
187 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 19 replies
425 recasts
1770 reactions