Mainur islam
@mainur69
0 reply
1 recast
1 reaction
4 replies
28 recasts
432 reactions
6 replies
11 recasts
297 reactions
16 replies
172 recasts
703 reactions
0 reply
4 recasts
122 reactions
0 reply
22 recasts
398 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
2368 reactions
1 reply
3 recasts
20 reactions
0 reply
1 recast
49 reactions
17 replies
19 recasts
104 reactions
11 replies
15 recasts
164 reactions
3 replies
17 recasts
440 reactions
86 replies
678 recasts
3057 reactions
83 replies
49 recasts
1150 reactions
4 replies
22 recasts
74 reactions
42 replies
71 recasts
465 reactions
1 reply
4 recasts
79 reactions
192 replies
2896 recasts
4021 reactions
6 replies
6 recasts
112 reactions
2 replies
2 recasts
30 reactions