Karthick
@karthicketh
100 Following
67 Followers
9 replies
94 recasts
381 reactions
2 replies
2 recasts
26 reactions
159 replies
896 recasts
3616 reactions
20 replies
46 recasts
206 reactions
114 replies
227 recasts
1514 reactions
0 reply
1 recast
6 reactions
13 replies
56 recasts
335 reactions
8 replies
16 recasts
269 reactions
99 replies
689 recasts
3109 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
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
639 recasts
2643 reactions
11 replies
90 recasts
515 reactions
1 reply
1 recast
6 reactions
103 replies
336 recasts
4113 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction