Alon
@0xalon
87 Following
100 Followers
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
27 replies
199 recasts
1036 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
57 replies
467 recasts
2089 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
52 replies
486 recasts
1371 reactions
0 reply
0 recast
1 reaction
84 replies
402 recasts
1873 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
1352 reactions
52 replies
944 recasts
3478 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
86 replies
382 recasts
1809 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
93 replies
865 recasts
3807 reactions