Content pfp
Content
@
https://warpcast.com/~/channel/programming
0 reply
0 recast
0 reaction

Vitalik Buterin pfp
Vitalik Buterin
@vitalik.eth
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
19 replies
425 recasts
1682 reactions

MarcelšŸ”µ pfp
MarcelšŸ”µ
@4cademy.eth
'import torch as np' hits different xD
1 reply
0 recast
1 reaction

Nonfungibl3.nexar pfp
Nonfungibl3.nexar
@nonfungibl3
I know of import numpy as np I am a beginner tho' Y'all are legends
1 reply
0 recast
1 reaction

MarcelšŸ”µ pfp
MarcelšŸ”µ
@4cademy.eth
That's how you normally do it. Vitalik is doing mental gymnastics and I love it xD
1 reply
0 recast
0 reaction

Nonfungibl3.nexar pfp
Nonfungibl3.nexar
@nonfungibl3
So true man
0 reply
0 recast
1 reaction