arya
@arya09
150 Following
20 Followers
434 replies
19114 recasts
19783 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
635 recasts
2610 reactions
77 replies
1838 recasts
7262 reactions
2 replies
22 recasts
343 reactions
63 replies
67 recasts
360 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
17 replies
23 recasts
153 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
42 replies
434 recasts
1363 reactions
369 replies
1434 recasts
4285 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
106 replies
5547 recasts
7290 reactions