五河
@sharles
247 Following
128 Followers
0 reply
0 recast
0 reaction
60 replies
230 recasts
1134 reactions
8 replies
4 recasts
47 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
3 replies
14 recasts
171 reactions
100 replies
287 recasts
1443 reactions
12 replies
10 recasts
72 reactions
78 replies
230 recasts
1132 reactions
27 replies
142 recasts
112 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
113 replies
310 recasts
1503 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 74 replies
232 recasts
1132 reactions
237 replies
605 recasts
2625 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction