Shaikh Azhar
@shaikhazhar84
56 replies
323 recasts
1906 reactions
47 replies
686 recasts
2632 reactions
7 replies
53 recasts
240 reactions
4 replies
4 recasts
189 reactions
4 replies
9 recasts
141 reactions
29 replies
629 recasts
2612 reactions
86 replies
181 recasts
964 reactions
1 reply
10 recasts
109 reactions
2 replies
2 recasts
35 reactions
0 reply
3 recasts
4 reactions
0 reply
2 recasts
38 reactions
0 reply
3 recasts
50 reactions
71 replies
1054 recasts
4210 reactions
0 reply
2 recasts
5 reactions
5 replies
48 recasts
231 reactions
4 replies
27 recasts
533 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
74 replies
393 recasts
2052 reactions
83 replies
49 recasts
1150 reactions
4 replies
44 recasts
526 reactions