Đại
@mrseyey
266 Following
57 Followers
10 replies
55 recasts
256 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
634 recasts
2598 reactions
16 replies
128 recasts
574 reactions
9 replies
67 recasts
396 reactions
2 replies
13 recasts
238 reactions
93 replies
1563 recasts
6053 reactions
234 replies
1846 recasts
6688 reactions
1 reply
4 recasts
56 reactions
276 replies
1315 recasts
4662 reactions
2 replies
2 recasts
23 reactions
5 replies
2 recasts
71 reactions
140 replies
789 recasts
2844 reactions
0 reply
0 recast
0 reaction
5 replies
16 recasts
89 reactions
1 reply
2 recasts
7 reactions
83 replies
78 recasts
160 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