
boss
@crypto-boss
225 Following
156 Followers
0 reply
4 recasts
63 reactions
0 reply
14 recasts
32 reactions
0 reply
14 recasts
32 reactions
8 replies
12 recasts
193 reactions
52 replies
284 recasts
1248 reactions
0 reply
2 recasts
34 reactions
0 reply
6 recasts
36 reactions
0 reply
11 recasts
55 reactions
2 replies
2 recasts
25 reactions
37 replies
31 recasts
153 reactions
0 reply
9 recasts
52 reactions
0 reply
7 recasts
47 reactions
0 reply
2 recasts
52 reactions
0 reply
3 recasts
46 reactions
0 reply
6 recasts
49 reactions
0 reply
1 recast
34 reactions
0 reply
22 recasts
154 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 19 replies
277 recasts
1230 reactions
1 reply
2 recasts
11 reactions
0 reply
4 recasts
29 reactions