CrystalChaser
@crystalchaser
243 Following
94 Followers
18 replies
5 recasts
78 reactions
56 replies
71 recasts
148 reactions
32 replies
15 recasts
71 reactions
21 replies
10 recasts
301 reactions
74 replies
9 recasts
380 reactions
0 reply
1 recast
1 reaction
0 reply
16 recasts
16 reactions
0 reply
0 recast
0 reaction
0 reply
1 recast
1 reaction
0 reply
6 recasts
6 reactions
0 reply
0 recast
0 reaction
17 replies
25 recasts
28 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
574 recasts
2338 reactions
0 reply
0 recast
0 reaction
0 reply
9 recasts
8 reactions
32 replies
561 recasts
2018 reactions
0 reply
1 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
1 recast
1 reaction
114 replies
385 recasts
1171 reactions