# Finding How PyTorch Samples from a Multinomial Distribution
5 min read
Ever wondered how PyTorch exposes low-level C++ operations to Python? I have, and maybe I can save you a few hours of digging through source code to figure out how they do it.