
Alon
@0xalon
0 reply
0 recast
1 reaction
35 replies
70 recasts
238 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
713 replies
2698 recasts
4577 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
28 replies
182 recasts
854 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
67 replies
556 recasts
1931 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
52 replies
284 recasts
1248 reactions
0 reply
0 recast
1 reaction
69 replies
368 recasts
1763 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
1232 reactions
77 replies
753 recasts
3219 reactions
0 reply
0 recast
1 reaction