accbb1
@accbb1
0 reply
0 recast
0 reaction
26 replies
88 recasts
328 reactions
19 replies
121 recasts
456 reactions
36 replies
100 recasts
523 reactions
34 replies
102 recasts
503 reactions
22 replies
13 recasts
82 reactions
0 reply
0 recast
0 reaction
11 replies
9 recasts
296 reactions
10 replies
7 recasts
283 reactions
0 reply
0 recast
0 reaction
5 replies
2 recasts
17 reactions
21 replies
86 recasts
432 reactions
32 replies
145 recasts
982 reactions
0 reply
0 recast
0 reaction
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
31 replies
179 recasts
659 reactions
15 replies
41 recasts
296 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
32 replies
139 recasts
453 reactions