Eth GM
@ethgm
326 Following
159 Followers
6 replies
5 recasts
94 reactions
0 reply
3 recasts
21 reactions
8 replies
1 recast
38 reactions
5 replies
3 recasts
20 reactions
0 reply
6 recasts
36 reactions
0 reply
8 recasts
35 reactions
1 reply
3 recasts
53 reactions
2 replies
1 recast
30 reactions
8 replies
2 recasts
75 reactions
0 reply
5 recasts
47 reactions
2 replies
1 recast
20 reactions
7 replies
9 recasts
91 reactions
1 reply
2 recasts
50 reactions
0 reply
6 recasts
36 reactions
0 reply
8 recasts
52 reactions
0 reply
4 recasts
53 reactions
0 reply
3 recasts
53 reactions
0 reply
1 recast
38 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
6 replies
4 recasts
50 reactions