John Smith
@johnsmith7
993 Following
568 Followers
0 reply
0 recast
0 reaction
0 reply
1 recast
0 reaction
1 reply
0 recast
0 reaction
21 replies
26 recasts
109 reactions
3 replies
1 recast
0 reaction
145 replies
67 recasts
375 reactions
3 replies
0 recast
0 reaction
4 replies
0 recast
1 reaction
220 replies
676 recasts
2946 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 81 replies
226 recasts
1096 reactions
37 replies
30 recasts
196 reactions
0 reply
3 recasts
52 reactions
4 replies
0 recast
2 reactions
7 replies
20 recasts
130 reactions
3 replies
3 recasts
44 reactions
34 replies
30 recasts
335 reactions
55 replies
66 recasts
364 reactions