boss
@crypto-boss
225 Following
172 Followers
0 reply
4 recasts
124 reactions
0 reply
14 recasts
32 reactions
0 reply
14 recasts
32 reactions
8 replies
12 recasts
262 reactions
52 replies
486 recasts
1366 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
39 replies
50 recasts
182 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
52 recasts
332 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
1372 reactions
1 reply
2 recasts
22 reactions
0 reply
4 recasts
29 reactions