Rinn
@rinnn89
112 Following
34 Followers
5 replies
1 recast
65 reactions
6 replies
2 recasts
20 reactions
8 replies
15 recasts
1741 reactions
16 replies
1 recast
223 reactions
7 replies
1 recast
21 reactions
31 replies
3 recasts
571 reactions
25 replies
1 recast
22 reactions
15 replies
2 recasts
27 reactions
14 replies
3 recasts
19 reactions
13 replies
2 recasts
21 reactions
11 replies
44 recasts
806 reactions
17 replies
1 recast
6 reactions
33 replies
14 recasts
75 reactions
35 replies
5 recasts
77 reactions
0 reply
0 recast
1 reaction
0 reply
1 recast
2 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
639 recasts
2644 reactions
12 replies
4 recasts
20 reactions
21 replies
5 recasts
40 reactions
88 replies
715 recasts
3393 reactions