Đại
@mrseyey
266 Following
57 Followers
10 replies
7 recasts
40 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
157 recasts
795 reactions
16 replies
26 recasts
133 reactions
9 replies
23 recasts
157 reactions
2 replies
13 recasts
116 reactions
93 replies
526 recasts
2815 reactions
239 replies
694 recasts
2983 reactions
1 reply
4 recasts
23 reactions
277 replies
458 recasts
2101 reactions
2 replies
2 recasts
8 reactions
4 replies
2 recasts
22 reactions
145 replies
361 recasts
1594 reactions
0 reply
0 recast
0 reaction
5 replies
7 recasts
35 reactions
1 reply
2 recasts
7 reactions
101 replies
32 recasts
69 reactions
0 reply
0 recast
0 reaction
0 reply
1 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction