Machine Learning Guide cover image

MLA 005 Shapes and Sizes: Tensors and NDArrays

Machine Learning Guide

00:00

Numpi - Expand Dims and Squeeze

For example, the point in our code where num pie is dealing with this tenser, it has no way of knowing that the batch size is 32. What you can do is use negative one as a wild card place holder. And what numpi will do then is say, ok, i'm going to hold off on this dimension. It'll go through the other dimensions, two 56, two 56 and then add a single dimension. That last dimension just being this contrived wrapping around the gray scale magnitude.

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