Jiucaige
@jiucaigege
113 Following
25 Followers
7 replies
3 recasts
51 reactions
0 reply
0 recast
0 reaction
3 replies
80 recasts
116 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
53 replies
26 recasts
139 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
4 reactions
34 replies
216 recasts
593 reactions
0 reply
0 recast
2 reactions
0 reply
0 recast
2 reactions
66 replies
129 recasts
499 reactions
0 reply
0 recast
5 reactions
8 replies
31 recasts
111 reactions
3 replies
4 recasts
19 reactions
33 replies
768 recasts
1207 reactions
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
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
1340 reactions
0 reply
0 recast
0 reaction