Jacob
@jacobdestroyer
59 replies
130 recasts
648 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
36 replies
47 recasts
266 reactions
2 replies
6 recasts
23 reactions
73 replies
250 recasts
1159 reactions
78 replies
12 recasts
220 reactions
42 replies
21 recasts
250 reactions
61 replies
24 recasts
324 reactions
1 reply
5 recasts
40 reactions
13 replies
7 recasts
190 reactions
56 replies
40 recasts
224 reactions
23 replies
15 recasts
123 reactions
2 replies
4 recasts
64 reactions
11 replies
119 recasts
531 reactions
12 replies
138 recasts
394 reactions
13 replies
2 recasts
13 reactions
0 reply
0 recast
1 reaction
11 replies
32 recasts
113 reactions
0 reply
0 recast
0 reaction
3 replies
3 recasts
31 reactions