The Array Cast cover image

PyTorch and Dex with Adam Paszke

The Array Cast

CHAPTER

The Differences Between for Loops and Indicators in DEX

The core language is based around for loops and ultimately it decomposes to scalar compute. But if you look through like the built-in library, there is map, there is reduced, there is, I don't know, fold. So it's less about always expressing your DEX program in terms of loops and indices. It's more you have two options. You can do it with the array style, if you will, whatever that looks like in DEX. Or if you find that cumbersome or inconvenient, you can switch over back to sort of for loops and indices as well.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner