The Array Cast cover image

PyTorch and Dex with Adam Paszke

The Array Cast

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app