Rinn
@rinnn89
112 Following
34 Followers
5 replies
1 recast
59 reactions
6 replies
2 recasts
29 reactions
8 replies
201 recasts
1232 reactions
16 replies
1 recast
197 reactions
7 replies
0 recast
38 reactions
29 replies
3 recasts
452 reactions
22 replies
0 recast
62 reactions
15 replies
2 recasts
45 reactions
12 replies
3 recasts
41 reactions
14 replies
2 recasts
34 reactions
11 replies
44 recasts
654 reactions
17 replies
0 recast
11 reactions
33 replies
14 recasts
65 reactions
35 replies
5 recasts
68 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
485 recasts
1991 reactions
12 replies
4 recasts
61 reactions
21 replies
5 recasts
86 reactions
86 replies
549 recasts
2652 reactions