
boss
@crypto-boss
225 Following
157 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
385 recasts
1628 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
38 replies
33 recasts
205 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
280 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
425 recasts
2004 reactions
1 reply
2 recasts
22 reactions
0 reply
4 recasts
29 reactions