Maksym
@maxinvest
118 Following
53 Followers
0 reply
1 recast
7 reactions
34 replies
306 recasts
524 reactions
0 reply
0 recast
0 reaction
0 reply
1 recast
11 reactions
7 replies
127 recasts
448 reactions
122 replies
399 recasts
2335 reactions
21 replies
71 recasts
335 reactions
0 reply
0 recast
0 reaction
0 reply
7 recasts
64 reactions
0 reply
20 recasts
144 reactions
1 reply
56 recasts
217 reactions
177 replies
1421 recasts
7333 reactions
1 reply
2 recasts
17 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
635 recasts
2609 reactions
2 replies
7 recasts
82 reactions
120 replies
1599 recasts
6189 reactions
86 replies
715 recasts
3358 reactions
15 replies
31 recasts
507 reactions
11 replies
4 recasts
72 reactions
0 reply
1 recast
11 reactions