Tristan Bartlett
@trbartlett
408 Following
331 Followers
1 reply
1 recast
6 reactions
19 replies
6 recasts
101 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
10 replies
1 recast
19 reactions
16 replies
12 recasts
116 reactions
0 reply
0 recast
0 reaction
41 replies
50 recasts
122 reactions
140 replies
10 recasts
136 reactions
17 replies
6 recasts
124 reactions
4 replies
0 recast
5 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 77 replies
246 recasts
1196 reactions
0 reply
0 recast
1 reaction
0 reply
1 recast
2 reactions
206 replies
894 recasts
1096 reactions
0 reply
0 recast
0 reaction
218 replies
2300 recasts
2513 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
174 replies
191 recasts
290 reactions