Michael
@michaelye
838 Following
508 Followers
0 reply
4 recasts
39 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
4 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
2 reactions
220 replies
676 recasts
2946 reactions
18 replies
32 recasts
241 reactions
8 replies
12 recasts
104 reactions
4 replies
21 recasts
206 reactions
2 replies
9 recasts
88 reactions
34 replies
30 recasts
335 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 81 replies
226 recasts
1096 reactions