arya
@arya09
155 Following
20 Followers
260 replies
10016 recasts
10374 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
77 replies
1587 recasts
5988 reactions
2 replies
103 recasts
196 reactions
63 replies
66 recasts
287 reactions
0 reply
0 recast
1 reaction
12 replies
14 recasts
54 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
14 replies
23 recasts
153 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
42 replies
370 recasts
1084 reactions
369 replies
1065 recasts
3190 reactions
5 replies
1 recast
19 reactions
1 reply
1 recast
6 reactions
27 replies
10 recasts
39 reactions
9 replies
3 recasts
97 reactions
35 replies
6 recasts
57 reactions
108 replies
4225 recasts
5514 reactions