Mainur islam
@mainur69
0 reply
1 recast
1 reaction
4 replies
28 recasts
133 reactions
6 replies
11 recasts
95 reactions
16 replies
42 recasts
189 reactions
0 reply
4 recasts
47 reactions
0 reply
22 recasts
127 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
800 reactions
1 reply
3 recasts
9 reactions
0 reply
1 recast
17 reactions
17 replies
3 recasts
42 reactions
11 replies
15 recasts
64 reactions
3 replies
17 recasts
197 reactions
91 replies
204 recasts
1117 reactions
87 replies
49 recasts
375 reactions
4 replies
12 recasts
39 reactions
42 replies
25 recasts
212 reactions
1 reply
4 recasts
41 reactions
197 replies
1178 recasts
1657 reactions
6 replies
6 recasts
54 reactions
2 replies
2 recasts
15 reactions